Fix build errors and prepare for deployment
- Fix const reassignment in Phase 2 reports export (use let for mutable vars) - Fix TypeScript interface to match Prisma reconciliation schema - Fix array comparison logic in bank CSV parsing - Temporarily disable pdf-parse due to module compatibility issue (pre-existing) All phases now build successfully with zero errors.
This commit is contained in:
@@ -79,7 +79,8 @@ function detectColumn(headerLine: string, keywords: string[]): number {
|
||||
if (cols[i].includes(keyword)) return i;
|
||||
}
|
||||
}
|
||||
return keywords === ['date', 'transaction date', 'date of transaction'] ? 0 : 1;
|
||||
// Default to column 0 for date, column 1 for others
|
||||
return keywords[0] === 'date' ? 0 : 1;
|
||||
}
|
||||
|
||||
function parseCSVRow(line: string): string[] {
|
||||
|
||||
Reference in New Issue
Block a user