7596-devToTest_2426 #2600
|
@ -194,7 +194,7 @@ module.exports = Self => {
|
||||||
await user.updateAttribute('email', email, myOptions);
|
await user.updateAttribute('email', email, myOptions);
|
||||||
|
|
||||||
await models.Worker.create({
|
await models.Worker.create({
|
||||||
id: isFreelance ? user.id : client.id,
|
id: user.id,
|
||||||
firstName,
|
firstName,
|
||||||
lastName: lastNames,
|
lastName: lastNames,
|
||||||
code,
|
code,
|
||||||
|
@ -219,8 +219,8 @@ module.exports = Self => {
|
||||||
throw e;
|
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};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue