a tool for shared writing and social publishing

filter out null items in batch array

+1 -1
+1 -1
app/api/inngest/functions/index_follows.ts
··· 83 83 84 84 // Wait for all check batches to complete 85 85 const batchResults = await Promise.all(checkBatches); 86 - existingFollows = batchResults.flat(); 86 + existingFollows = batchResults.flat().filter(Boolean); 87 87 88 88 // Filter follows to only include those that exist in identities table 89 89 const insertBatchSize = 100;