SEO Optimization

This commit is contained in:
Sean Morley
2024-04-20 01:17:34 +00:00
parent 348c545419
commit 7086877ba3
11 changed files with 232 additions and 148 deletions

View File

@@ -84,17 +84,17 @@ export const actions: Actions = {
}
let adminUser = await db
.select()
.from(userTable)
.where(eq(userTable.role, 'admin'))
.execute();
.select()
.from(userTable)
.where(eq(userTable.role, "admin"))
.execute();
if (adminUser != null && adminUser.length > 0) {
return fail(400, {
message: "Admin user already exists",
});
}
await db
.insert(userTable)
.values({