api/firstRun.post: await for user creation

This commit is contained in:
Wroclaw 2023-11-09 17:29:41 +01:00
parent e509bb22c1
commit 434ae5843e

View file

@ -24,7 +24,7 @@ export default defineEventHandler(async (e) => {
if (typeof email !== "string") throw createError({ message: "email is not string", statusCode: 400 });
execSync("npx prisma db push --force-reset");
database.user.create({
await database.user.create({
data: {
id: new Snowflake().state,
username,