mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-02-23 02:41:21 +02:00
refactor: comments
This commit is contained in:
parent
bb31242d6b
commit
13f3427ba7
@ -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()],
|
||||
|
Loading…
x
Reference in New Issue
Block a user