diff --git a/src/lib/workers/export.js b/src/lib/workers/export.js index 70bdbdc..d78abfc 100644 --- a/src/lib/workers/export.js +++ b/src/lib/workers/export.js @@ -13,18 +13,18 @@ expose({ if (ticket.feedback?.comment) ticket.feedback.comment = decrypt(ticket.feedback.comment); if (ticket.topic) ticket.topic = decrypt(ticket.topic); - ticket.archivedMessages = ticket.archivedMessages.map(async message => { + ticket.archivedMessages = ticket.archivedMessages.map(message => { message.content = decryptIfExists(message.content); return message; }); - ticket.archivedUsers = ticket.archivedUsers.map(async user => { + ticket.archivedUsers = ticket.archivedUsers.map(user => { user.displayName = decryptIfExists(user.displayName); user.username = decryptIfExists(user.username); return user; }); - ticket.questionAnswers = ticket.questionAnswers.map(async answer => { + ticket.questionAnswers = ticket.questionAnswers.map(answer => { if (answer.value) answer.value = decryptIfExists(answer.value); return answer; });