Skip to content

🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.

Allow empty arrays when isLastBatch is true

Edward Cui91ca6420066e
diff --git a/server/src/api/sites/batchImportEvents.ts b/server/src/api/sites/batchImportEvents.ts
index af27e113b..7eb6be59d 100644
--- a/server/src/api/sites/batchImportEvents.ts
+++ b/server/src/api/sites/batchImportEvents.ts
@@ -16,7 +16,7 @@ const batchImportRequestSchema = z
importId: z.string().uuid(),
}),
body: z.object({
- events: z.array(UmamiImportMapper.umamiEventKeyOnlySchema).min(1),
+ events: z.array(UmamiImportMapper.umamiEventKeyOnlySchema),
isLastBatch: z.boolean().optional(),
}),
})