mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-02-23 10:51:22 +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 channels = [...message.mentions.channels.values()];
|
||||||
const members = [...message.mentions.members.values()];
|
const members = [...message.mentions.members.values()];
|
||||||
const roles = [...message.mentions.roles.values()];
|
const roles = [...message.mentions.roles.values()];
|
||||||
|
|
||||||
// const ticket = { connect: { id: ticketId } };
|
|
||||||
|
|
||||||
const worker = await reusable('crypto');
|
const worker = await reusable('crypto');
|
||||||
|
|
||||||
try {
|
try {
|
||||||
@ -55,7 +51,7 @@ module.exports = class TicketArchiver {
|
|||||||
ticketId,
|
ticketId,
|
||||||
userId: 'default',
|
userId: 'default',
|
||||||
},
|
},
|
||||||
select: { ticketId: true }, // default is to return all scalar fields
|
select: { ticketId: true }, // ? default is to return all scalar fields
|
||||||
update: {},
|
update: {},
|
||||||
where: {
|
where: {
|
||||||
ticketId_userId: {
|
ticketId_userId: {
|
||||||
@ -141,14 +137,6 @@ module.exports = class TicketArchiver {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const data = {
|
const data = {
|
||||||
// author: {
|
|
||||||
// connect: {
|
|
||||||
// ticketId_userId: {
|
|
||||||
// ticketId,
|
|
||||||
// userId: message.author?.id || 'default',
|
|
||||||
// },
|
|
||||||
// },
|
|
||||||
// },
|
|
||||||
content: await worker.encrypt(
|
content: await worker.encrypt(
|
||||||
JSON.stringify({
|
JSON.stringify({
|
||||||
attachments: [...message.attachments.values()],
|
attachments: [...message.attachments.values()],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user