7596-devToTest_2426 #2600

Merged
alexm merged 115 commits from 7596-devToTest_2426 into test 2024-06-18 06:19:51 +00:00
1 changed files with 3 additions and 3 deletions
Showing only changes of commit 8188bdbcb0 - Show all commits

View File

@ -194,7 +194,7 @@ module.exports = Self => {
await user.updateAttribute('email', email, myOptions);
await models.Worker.create({
id: isFreelance ? user.id : client.id,
id: user.id,
firstName,
lastName: lastNames,
code,
@ -219,8 +219,8 @@ module.exports = Self => {
throw e;
}
await models.VnUser.resetPassword({email, emailTemplate: 'worker-welcome', id: client.id});
await models.VnUser.resetPassword({email, emailTemplate: 'worker-welcome', id: user.id});
return {id: client.id};
return {id: user.id};
};
};