eshaham / israeli-ynab-updater

A tool for updating YNAB using israeli-bank-scrapers
MIT License
53 stars 15 forks source link

export multiple account together #41

Closed dudutwizer closed 5 years ago

dudutwizer commented 5 years ago

(node:65127) UnhandledPromiseRejectionWarning: TypeError: (0 , _json2csv2.default) is not a function at generateSingleReport (/bank-scrapers/israeli-ynab-updater/src/scrape/generate-reports.js:123:23) at exports.default (/bank-scrapers/israeli-ynab-updater/src/scrape/scrape-task.js:92:13) (node:65127) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2) (node:65127) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code

dudutwizer commented 5 years ago

found fix

add const json2csv = require('json2csv').parse;

eshaham commented 5 years ago

@dudutwizer thanks for reporting, fixed