🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.
Rename processedRows in importStatus table
Edward Cuib1658bbe64f9
diff --git a/server/src/api/import/listSiteImports.ts b/server/src/api/import/listSiteImports.tsindex 9004d7a20..423f0720d 100644--- a/server/src/api/import/listSiteImports.ts+++ b/server/src/api/import/listSiteImports.ts@@ -43,7 +43,7 @@ export async function listSiteImports(importId: imp.importId,source: imp.source,status: imp.status,- processedRows: imp.processedRows,+ importedEvents: imp.importedEvents,errorMessage: imp.errorMessage,startedAt: imp.startedAt, // maybe return import time, or no time data at allcompletedAt: imp.completedAt,diff --git a/server/src/db/postgres/schema.ts b/server/src/db/postgres/schema.tsindex 1fc6271e7..523986e78 100644--- a/server/src/db/postgres/schema.ts+++ b/server/src/db/postgres/schema.ts@@ -275,7 +275,7 @@ export const importStatus = pgTable(organizationId: text("organization_id").notNull(),source: importSourceEnum("source").notNull(),status: importStatusEnum("status").notNull().default("pending"),- processedRows: integer("processed_rows").notNull().default(0),+ importedEvents: integer("imported_events").notNull().default(0),errorMessage: text("error_message"),startedAt: timestamp("started_at").notNull().defaultNow(),completedAt: timestamp("completed_at"),diff --git a/server/src/lib/importStatus.ts b/server/src/lib/importStatus.tsindex 5632725a9..616bd6f35 100644--- a/server/src/lib/importStatus.ts+++ b/server/src/lib/importStatus.ts@@ -24,10 +24,10 @@ export class ImportStatusManager {static async updateProgress(importId: string,- processedRows: number,+ importedEvents: number,): Promise<void> {const updateData: Partial<InsertImportStatus> = {- processedRows,+ importedEvents,};await db.update(importStatus)