api/firstRun.post: await for user creation
This commit is contained in:
parent
e509bb22c1
commit
434ae5843e
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ export default defineEventHandler(async (e) => {
|
||||||
if (typeof email !== "string") throw createError({ message: "email is not string", statusCode: 400 });
|
if (typeof email !== "string") throw createError({ message: "email is not string", statusCode: 400 });
|
||||||
|
|
||||||
execSync("npx prisma db push --force-reset");
|
execSync("npx prisma db push --force-reset");
|
||||||
database.user.create({
|
await database.user.create({
|
||||||
data: {
|
data: {
|
||||||
id: new Snowflake().state,
|
id: new Snowflake().state,
|
||||||
username,
|
username,
|
||||||
|
|
Loading…
Reference in a new issue