This commit is contained in:
parent
5b1e5743b5
commit
52b14cf8b4
|
@ -37,7 +37,7 @@ module.exports = Self => {
|
|||
if (!isSubordinate) throw new UserError('You don\'t have enough privileges.');
|
||||
|
||||
await models.VnUser.setPassword(args.workerFk, args.newPass, myOptions);
|
||||
await models.VnUser.updateAll({id: args.workerFk}, {emailVerified: 1}, myOptions);
|
||||
await models.VnUser.updateAll({id: args.workerFk}, {emailVerified: true}, myOptions);
|
||||
|
||||
if (tx) await tx.commit();
|
||||
} catch (e) {
|
||||
|
|
Loading…
Reference in New Issue