mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-04-05 21:01:40 +03:00
fix(api): missing archived messages etc in exports
This commit is contained in:
parent
a33c670fc8
commit
9689648a6c
@ -13,18 +13,18 @@ expose({
|
|||||||
if (ticket.feedback?.comment) ticket.feedback.comment = decrypt(ticket.feedback.comment);
|
if (ticket.feedback?.comment) ticket.feedback.comment = decrypt(ticket.feedback.comment);
|
||||||
if (ticket.topic) ticket.topic = decrypt(ticket.topic);
|
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);
|
message.content = decryptIfExists(message.content);
|
||||||
return message;
|
return message;
|
||||||
});
|
});
|
||||||
|
|
||||||
ticket.archivedUsers = ticket.archivedUsers.map(async user => {
|
ticket.archivedUsers = ticket.archivedUsers.map(user => {
|
||||||
user.displayName = decryptIfExists(user.displayName);
|
user.displayName = decryptIfExists(user.displayName);
|
||||||
user.username = decryptIfExists(user.username);
|
user.username = decryptIfExists(user.username);
|
||||||
return user;
|
return user;
|
||||||
});
|
});
|
||||||
|
|
||||||
ticket.questionAnswers = ticket.questionAnswers.map(async answer => {
|
ticket.questionAnswers = ticket.questionAnswers.map(answer => {
|
||||||
if (answer.value) answer.value = decryptIfExists(answer.value);
|
if (answer.value) answer.value = decryptIfExists(answer.value);
|
||||||
return answer;
|
return answer;
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user