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 84 // Wait for all check batches to complete 85 const batchResults = await Promise.all(checkBatches); 86 - existingFollows = batchResults.flat(); 87 88 // Filter follows to only include those that exist in identities table 89 const insertBatchSize = 100;
··· 83 84 // Wait for all check batches to complete 85 const batchResults = await Promise.all(checkBatches); 86 + existingFollows = batchResults.flat().filter(Boolean); 87 88 // Filter follows to only include those that exist in identities table 89 const insertBatchSize = 100;