Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/integrations/csv-import/csvImportIntegration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ export class CSVImportIntegration {
return files.map(match => {
try {
const rows = parse(readFileSync(match), {
encoding: 'utf8',
delimiter: Buffer.from(CSVAccountConfig.delimiter, 'utf8'),
columns: true,
skip_empty_lines: true
})
Expand Down
1 change: 1 addition & 0 deletions src/types/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export interface CSVAccountConfig extends BaseAccountConfig {
transformer: { [inputColumn: string]: keyof Transaction }
dateFormat: string
negateValues?: boolean
delimiter?: string
}

export type AccountConfig = PlaidAccountConfig | CSVAccountConfig