mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-02-23 10:51:22 +02:00
perf(api): don't return ticket after import
This commit is contained in:
parent
a861f76df9
commit
440a9b745c
@ -163,7 +163,12 @@ module.exports.post = fastify => ({
|
||||
const allMessages = [];
|
||||
|
||||
for (const [ticket, ticketMessages] of ticketsResolved) {
|
||||
queries.push(client.prisma.ticket.create({ data: ticket }));
|
||||
queries.push(
|
||||
client.prisma.ticket.create({
|
||||
data: ticket,
|
||||
select: { id: true },
|
||||
}),
|
||||
);
|
||||
allMessages.push(...ticketMessages);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user