Updated unit test
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Joan Sanchez 2022-05-13 11:17:11 +02:00
parent 4479337731
commit 5cbe5b6359
1 changed files with 3 additions and 1 deletions

View File

@ -29,6 +29,8 @@ module.exports = Self => {
Self.changePassword = async function(id, oldPassword, newPassword) {
await Self.rawSql(`CALL account.user_changePassword(?, ?, ?)`,
[id, oldPassword, newPassword]);
await Self.app.models.UserAccount.syncById(id, newPassword);
// await Self.app.models.UserAccount.syncById(id, newPassword);
return true;
};
};