refactor: comments

This commit is contained in:
Isaac 2025-02-12 21:15:43 +00:00
parent bb31242d6b
commit 13f3427ba7
No known key found for this signature in database
GPG Key ID: 0DE40AE37BBA5C33

View File

@ -31,14 +31,10 @@ module.exports = class TicketArchiver {
}
}
const channels = [...message.mentions.channels.values()];
const members = [...message.mentions.members.values()];
const roles = [...message.mentions.roles.values()];
// const ticket = { connect: { id: ticketId } };
const worker = await reusable('crypto');
try {
@ -55,7 +51,7 @@ module.exports = class TicketArchiver {
ticketId,
userId: 'default',
},
select: { ticketId: true }, // default is to return all scalar fields
select: { ticketId: true }, // ? default is to return all scalar fields
update: {},
where: {
ticketId_userId: {
@ -141,14 +137,6 @@ module.exports = class TicketArchiver {
}
const data = {
// author: {
// connect: {
// ticketId_userId: {
// ticketId,
// userId: message.author?.id || 'default',
// },
// },
// },
content: await worker.encrypt(
JSON.stringify({
attachments: [...message.attachments.values()],