🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.
Misc
Edward Cui25943e4e47c4
diff --git a/server/src/lib/errorHandling.ts b/server/src/lib/errorHandling.tsindex 7c79d4975..34baeb858 100644--- a/server/src/lib/errorHandling.ts+++ b/server/src/lib/errorHandling.ts@@ -1,30 +1,8 @@export class ImportValidator {- static validateDataIntegrity(row: any, rowIndex: number): void {- if (!row.created_at || !row.session_id) {- throw new ImportError(- `Required fields missing at row ${rowIndex}`,- "",- false- );- }-+ // TODO: Implement+ static validateUmamiDataIntegrity(row: any, rowIndex: number): void {+ // Check required fields/columns// Validate timestamp format- const timestamp = new Date(row.created_at);- if (isNaN(timestamp.getTime())) {- throw new ImportError(- `Invalid timestamp format at row ${rowIndex}: ${row.created_at}`,- "",- false- );- }-// Validate timestamp is not in the future- if (timestamp > new Date()) {- throw new ImportError(- `Future timestamp at row ${rowIndex}: ${row.created_at}`,- "",- false- );- }}}