Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ZJONSSON committed Jun 17, 2024
1 parent c614be7 commit 2dfa5f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function cli(argv) {

//@ts-ignore
if (!module.parent) {
cli(process.argv.slice(2).concat('--exit'));
cli(process.argv.slice(2).concat('--exit')).catch(e => console.error(e));
}

module.exports = main;
Expand Down
2 changes: 1 addition & 1 deletion sources/mysql.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = argv => {
['source_database', 'source_table'].forEach(key => { if(!argv[key]) throw `${key} missing`;});

argv.source_table = argv.source_database + '.' + argv.source_table;
const config = createConfig(argv.source_config, argv, 'target', ['host', 'connectionLimit', 'user', 'password']);
const config = createConfig(argv.source_config, argv, 'source', ['host', 'connectionLimit', 'user', 'password']);
const pool = mysql.createPool(config);
const p = etl.mysql.execute(pool);

Expand Down

0 comments on commit 2dfa5f6

Please sign in to comment.