mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-09-06 10:11:27 +03:00
Finally "fix" (hack) Prisma middleware bug
Middleware runs twice on question upsert?
This commit is contained in:
@@ -78,8 +78,7 @@ module.exports.post = fastify => ({
|
||||
data: {
|
||||
guild: { connect: { id: guild.id } },
|
||||
...data,
|
||||
// questions: { createMany: { data: data.questions ?? [] } },
|
||||
questions: { create: { data: data.questions ?? [] } }, // sqlite doesn't support createMany?
|
||||
questions: { createMany: { data: data.questions ?? [] } },
|
||||
},
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user