completionId: cgen-f22713a3a2ce44249c8d31dbdc1b4225
cgen-f22713a3a2ce44249c8d31dbdc1b4225
This commit is contained in:
parent
db0593ce8d
commit
7bab2b12a9
1 changed files with 2 additions and 4 deletions
|
|
@ -4947,12 +4947,10 @@ export function createServer() {
|
|||
.select();
|
||||
|
||||
if (error) {
|
||||
console.error("[Staff Seed Error] Code:", error.code, "Message:", error.message, "Details:", error.details, "Hint:", error.hint);
|
||||
console.error("[Staff Seed Error] Full error:", JSON.stringify(error));
|
||||
return res.status(500).json({
|
||||
error: "Failed to seed staff members",
|
||||
code: error.code,
|
||||
details: error.details || error.message || "Unknown error",
|
||||
hint: error.hint,
|
||||
fullError: error,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue