fix: Bigcapital CLIs.

This commit is contained in:
Ahmed Bouhuolia
2020-06-02 11:13:10 +02:00
parent 4c03c73a9a
commit 2f959b9353
2 changed files with 4 additions and 6 deletions

View File

@@ -16,7 +16,7 @@ commander
.command('license:generate <license_period>')
.description('Generates a new license key.')
.action(async (interval) => {
try {
try {
const sysDb = initSystemKnex();
let repeat = true;
@@ -52,6 +52,4 @@ commander
log(`ID: ${license.id} | Key: ${license.key} | Interval: ${license.licenseInterval} | Period: ${license.licensePeriod}`);
});
exit();
});
commander.parse(process.argv);
});