diff --git a/server/api/firstRun.post.ts b/server/api/firstRun.post.ts index 714be3b..70aa5a8 100644 --- a/server/api/firstRun.post.ts +++ b/server/api/firstRun.post.ts @@ -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,