completionId: cgen-f46ea2e584e94c9abc1ecea955930d8b
cgen-f46ea2e584e94c9abc1ecea955930d8b
This commit is contained in:
parent
e28203cd19
commit
85b7a48abf
1 changed files with 10 additions and 2 deletions
|
|
@ -1086,8 +1086,16 @@ export function createServer() {
|
||||||
});
|
});
|
||||||
|
|
||||||
if (insertError) {
|
if (insertError) {
|
||||||
console.error("[Discord] Session insert error:", insertError);
|
console.error("[Discord] Session insert error:", {
|
||||||
return res.status(500).json({ error: insertError.message });
|
code: insertError.code,
|
||||||
|
message: insertError.message,
|
||||||
|
details: insertError.details,
|
||||||
|
hint: insertError.hint,
|
||||||
|
});
|
||||||
|
return res.status(500).json({
|
||||||
|
error: insertError.message,
|
||||||
|
details: insertError.details
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
res.json({ token: sessionToken });
|
res.json({ token: sessionToken });
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue