Add support for SQLite and PostgreSQL. Also add/fix encryption...

...for a smaller number of fields
This commit is contained in:
Isaac
2022-07-23 01:44:03 +01:00
parent 08e757febf
commit 3de9cd8c3a
11 changed files with 859 additions and 9 deletions

View File

@@ -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?
},
});