Skip to content

Commit

Permalink
Merge pull request #20 from codehivetx/minor
Browse files Browse the repository at this point in the history
Minor
  • Loading branch information
srl295 authored Aug 1, 2023
2 parents e0df195 + cbde55a commit f15550f
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 22 deletions.
2 changes: 2 additions & 0 deletions bin/goosebay
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ const Cli = require('../lib/cli');
const process = require('process');
const argv = require('minimist')(process.argv.slice(2), Cli.opts);

console.dir({argv});

// Vector everything to the Cli class
const cli = new Cli();
cli.run(argv)
Expand Down
1 change: 1 addition & 0 deletions lib/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class Cli {

async run(argv) {
const { configName } = argv;
console.dir({configName});
const config = require('./config')({
configName
});
Expand Down
4 changes: 4 additions & 0 deletions lib/goosebay.js
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,10 @@ class GooseBay {
// Log raw data
if (VERBOSE) console.dir(n);
const { start, end, tags } = n;
if (!tags) {
console.error('No tags- skipping ' + JSON.stringify(n));
continue;
}
const { item_id, item_name, customer_id, customer_name, rate, mainTag } = this.findcode(tags);
// findcode will throw

Expand Down
42 changes: 21 additions & 21 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"chalk": "^5.0.0",
"conf": "^10.1.1",
"intuit-oauth": "^4.0.0",
"minimist": "^1.2.5",
"minimist": "^1.2.6",
"moment-timezone": "^0.5.34",
"node-quickbooks": "^2.0.39"
},
Expand Down

0 comments on commit f15550f

Please sign in to comment.