From 13f3427ba7ca6fbfd2355a86fd0fb9e1a69220f0 Mon Sep 17 00:00:00 2001 From: Isaac Date: Wed, 12 Feb 2025 21:15:43 +0000 Subject: [PATCH] refactor: comments --- src/lib/tickets/archiver.js | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/lib/tickets/archiver.js b/src/lib/tickets/archiver.js index 28cb66f..5198b17 100644 --- a/src/lib/tickets/archiver.js +++ b/src/lib/tickets/archiver.js @@ -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()],