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 ee22aa8 commit dbd2b35Copy full SHA for dbd2b35
supabase/functions/fetch-scrobbles/scrobbles.ts
@@ -36,6 +36,11 @@ export async function scrobbles(env: Variables): Promise<string> {
36
total = parseInt(paginationInitial.total);
37
page = totalPages;
38
39
+ if (total === 0) {
40
+ console.log('Nothing new to save.');
41
+ return 'ok';
42
+ }
43
+
44
if (startFrom) {
45
console.log(
46
`Found ${total} new tracks to save! Starting from page ${totalPages}.`,
0 commit comments