mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-09-07 02:21:27 +03:00
Add support for SQLite and PostgreSQL. Also add/fix encryption...
...for a smaller number of fields
This commit is contained in:
@@ -78,7 +78,8 @@ module.exports.post = fastify => ({
|
||||
data: {
|
||||
guild: { connect: { id: guild.id } },
|
||||
...data,
|
||||
questions: { createMany: { data: data.questions ?? [] } },
|
||||
// questions: { createMany: { data: data.questions ?? [] } },
|
||||
questions: { create: { data: data.questions ?? [] } }, // sqlite doesn't support createMany?
|
||||
},
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user