fix(database): modify admin seeded setting insertion to return key
All checks were successful
Build & Push Docker Image / build (push) Successful in 6m27s
All checks were successful
Build & Push Docker Image / build (push) Successful in 6m27s
This commit is contained in:
@@ -455,6 +455,6 @@ export async function initDatabase() {
|
||||
log.db.info(`Default admin created: ${adminEmail}`);
|
||||
}
|
||||
// Mark as seeded so it never runs again, even if the admin email is changed
|
||||
await db.run("INSERT INTO settings (key, value) VALUES ('admin_seeded', '1')");
|
||||
await db.run("INSERT INTO settings (key, value) VALUES ('admin_seeded', '1') RETURNING key");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user