From e1561dbd82783c6c327e156f277eb49786cf23df Mon Sep 17 00:00:00 2001 From: Fredrik Burmester Date: Fri, 21 Feb 2025 11:26:32 +0100 Subject: [PATCH] fix: return NewData for initial run --- utils/recently-added-notifications.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/recently-added-notifications.ts b/utils/recently-added-notifications.ts index 20a5304f..1e0bd13a 100644 --- a/utils/recently-added-notifications.ts +++ b/utils/recently-added-notifications.ts @@ -153,7 +153,7 @@ export async function fetchAndStoreRecentlyAdded( RECENTLY_ADDED_SENT_NOTIFICATIONS_ITEM_IDS_KEY, JSON.stringify(items.map((item) => item.Id)) ); - return 0; + return items.length; } else { // Only send notifications for items that haven't been sent yet for (const newItem of items) {