From 9e0f794f13cd8b51eebd4bd03715e0837970bcad Mon Sep 17 00:00:00 2001 From: Jared Pereira Date: Fri, 17 Oct 2025 11:57:43 -0400 Subject: [PATCH] filter out null items in batch array --- app/api/inngest/functions/index_follows.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/inngest/functions/index_follows.ts b/app/api/inngest/functions/index_follows.ts index e69ec996..14173ef7 100644 --- a/app/api/inngest/functions/index_follows.ts +++ b/app/api/inngest/functions/index_follows.ts @@ -83,7 +83,7 @@ export const index_follows = inngest.createFunction( // Wait for all check batches to complete const batchResults = await Promise.all(checkBatches); - existingFollows = batchResults.flat(); + existingFollows = batchResults.flat().filter(Boolean); // Filter follows to only include those that exist in identities table const insertBatchSize = 100; -- 2.51.2