From 3c8ba79b87e671a47bc37544e20453c0a35caca4 Mon Sep 17 00:00:00 2001 From: Isaac Date: Tue, 6 Sep 2022 00:07:12 +0100 Subject: [PATCH 1/2] Detect theme on first run --- src/lib/tickets/archiver.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/tickets/archiver.js b/src/lib/tickets/archiver.js index de41890..7db83ef 100644 --- a/src/lib/tickets/archiver.js +++ b/src/lib/tickets/archiver.js @@ -1,5 +1,5 @@ const Cryptr = require('cryptr'); -const cryptr = new Cryptr(process.env.ENCRYPTION_KEY); +// const cryptr = new Cryptr(process.env.ENCRYPTION_KEY); module.exports = class TicketArchiver { constructor(client) { From 3ee972c9ff80f324435188c421b85d427cc97cc4 Mon Sep 17 00:00:00 2001 From: Isaac Date: Tue, 6 Sep 2022 00:16:07 +0100 Subject: [PATCH 2/2] fix edit topic log --- src/modals/topic.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modals/topic.js b/src/modals/topic.js index e9af947..db3e458 100644 --- a/src/modals/topic.js +++ b/src/modals/topic.js @@ -29,6 +29,7 @@ module.exports = class TopicModal extends Modal { }, id: true, openingMessageId: true, + topic: true, }; const original = await client.prisma.ticket.findUnique({ select, @@ -41,7 +42,7 @@ module.exports = class TopicModal extends Modal { }); const getMessage = client.i18n.getLocale(ticket.guild.locale); - if (topic) await interaction.channel.setTopic(`<@${ticket.createdById}> | ${topic}`); + if (topic) interaction.channel.setTopic(`<@${ticket.createdById}> | ${topic}`); const opening = await interaction.channel.messages.fetch(ticket.openingMessageId); if (opening && opening.embeds.length >= 2) {