Merge pull request #996 from kherock/patch-1

Fix database import for user create command
This commit is contained in:
Rijk van Zanten
2020-11-14 15:57:00 +01:00
committed by GitHub
2 changed files with 5 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
export default async function usersCreate({ email, password, role }: any) {
const { default: database, schemaInspector } = require('../../../database/index').default;
const { default: database, schemaInspector } = require('../../../database/index');
const { UsersService } = require('../../../services/users');
if (!email || !password || !role) {

View File

@@ -57,4 +57,7 @@ program
.description('Count the amount of items in a given collection')
.action(count);
program.parse(process.argv);
program.parseAsync(process.argv).catch((err) => {
console.error(err);
process.exit(1);
});