forked from engineering/cloudservices
why r u awaiting a constructor
parent
fe1e48cdb0
commit
a7012e31aa
|
@ -166,7 +166,7 @@ export default class Util {
|
|||
await this.exec(`useradd -m -p ${hash} -c ${etcPasswd} -s /bin/bash ${username}`);
|
||||
await this.exec(`chage -d0 ${username}`);
|
||||
|
||||
const account = await new this.client.db.Account({
|
||||
const account = new this.client.db.Account({
|
||||
username, userID, emailAddress, createdBy: moderatorID, createdAt: new Date(), locked: false, ssInit: false,
|
||||
});
|
||||
return account.save();
|
||||
|
|
Loading…
Reference in New Issue