Commit 9c2f1f1d authored by Mahmoud Aglan's avatar Mahmoud Aglan

debug: show match insert error

Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
parent 9d9d328b
...@@ -106,6 +106,9 @@ function handleQueue($db, string $userId, array $input): void { ...@@ -106,6 +106,9 @@ function handleQueue($db, string $userId, array $input): void {
]; ];
$match = $sdb->insert('matches', $matchData); $match = $sdb->insert('matches', $matchData);
if (isset($match['error'])) {
jsonResponse(['queued' => true, 'debug_match_error' => $match['error'], 'debug_data' => $matchData]);
}
$matchId = $match[0]['id'] ?? $match['id'] ?? null; $matchId = $match[0]['id'] ?? $match['id'] ?? null;
if ($matchId) { if ($matchId) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment