We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5374418 commit 65b99a8Copy full SHA for 65b99a8
1 file changed
supabase/functions/chess-database-search/cache.ts
@@ -58,17 +58,15 @@ export async function writeCache(
58
found: boolean
59
): Promise<void> {
60
try {
61
- await db
62
- .from('db_search_cache')
63
- .upsert(
64
- {
65
- fen_board: key,
66
- found,
67
- providers,
68
- checked_at: new Date().toISOString()
69
- },
70
- { onConflict: 'fen_board' }
71
- );
+ await db.from('db_search_cache').upsert(
+ {
+ fen_board: key,
+ found,
+ providers,
+ checked_at: new Date().toISOString()
+ },
+ { onConflict: 'fen_board' }
+ );
72
} catch (err) {
73
console.error(`Cache write failed for ${key}:`, err);
74
}
0 commit comments