perbaikan tambah akun dan akses setiap role

This commit is contained in:
2026-06-03 09:30:40 +07:00
parent a904a27934
commit 1ee12d8a72
13 changed files with 764 additions and 105 deletions
+1 -1
View File
@@ -112,7 +112,7 @@ export async function seedLocalUserIfMissing() {
}
// Check existence without selecting `password_hash` to avoid failures on older schemas
try {
const [rows] = await db.execute(sql`SELECT id FROM users WHERE unionId = ${LocalAuth.defaultAdminEmail} LIMIT 1`);
await db.execute(sql`SELECT id FROM users WHERE unionId = ${LocalAuth.defaultAdminEmail} LIMIT 1`);
} catch (err) {
console.warn('[seed] existence check failed, will attempt to insert anyway', err);
}