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 ac8a6bf commit d122920Copy full SHA for d122920
lib/youtube-stats.ts
@@ -303,11 +303,6 @@ export async function pushStatsToSanity(
303
return new Date(row.last_fetched_at!) > new Date(row.last_synced_to_sanity_at);
304
}).slice(0, batchSize);
305
306
- if (queryError) {
307
- console.error(`[youtube-stats] Error querying Supabase for sync:`, queryError);
308
- throw new Error(`Supabase query error: ${queryError.message}`);
309
- }
310
-
311
if (!rows || rows.length === 0) {
312
console.log("[youtube-stats] No records need syncing to Sanity");
313
return { synced: 0, errors: 0 };
0 commit comments