Skip to content

Commit d122920

Browse files
Miriadyoutubeviews
andcommitted
fix: remove duplicate queryError check causing TypeScript build error
Co-authored-by: youtubeviews <youtubeviews@miriad.systems>
1 parent ac8a6bf commit d122920

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

lib/youtube-stats.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -303,11 +303,6 @@ export async function pushStatsToSanity(
303303
return new Date(row.last_fetched_at!) > new Date(row.last_synced_to_sanity_at);
304304
}).slice(0, batchSize);
305305

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-
311306
if (!rows || rows.length === 0) {
312307
console.log("[youtube-stats] No records need syncing to Sanity");
313308
return { synced: 0, errors: 0 };

0 commit comments

Comments
 (0)