From bfca7e8672adaba09f091efc1e44fa44872652d3 Mon Sep 17 00:00:00 2001 From: Stephan <57194608+stephan418@users.noreply.github.com> Date: Tue, 21 Dec 2021 16:16:29 +0100 Subject: [PATCH] Add the permission_level 'ELEVATED' to the default user --- src/app.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app.ts b/src/app.ts index 75f3c95..deffe8a 100644 --- a/src/app.ts +++ b/src/app.ts @@ -13,7 +13,11 @@ async function main() { // Dev await prisma.admin.upsert({ where: { id: 1 }, - create: { name: "admin", password: await argon2.hash("test", { type: argon2.argon2id }) }, + create: { + name: "admin", + password: await argon2.hash("test", { type: argon2.argon2id }), + permission_level: "ELEVATED", + }, update: {}, });