4856-worker.time-control_2 #1418
|
@ -41,7 +41,7 @@ module.exports = Self => {
|
||||||
}, myOptions);
|
}, myOptions);
|
||||||
|
|
||||||
if (workerTimeControlMail && workerTimeControlMail.state != 'SENDED') {
|
if (workerTimeControlMail && workerTimeControlMail.state != 'SENDED') {
|
||||||
const worker = await models.EmailUser.findById(workerId);
|
const worker = await models.EmailUser.findById(workerId, null, myOptions);
|
||||||
vicent marked this conversation as resolved
Outdated
|
|||||||
ctx.args = {
|
ctx.args = {
|
||||||
recipient: worker.email,
|
recipient: worker.email,
|
||||||
year: yearNumber,
|
year: yearNumber,
|
||||||
|
|
Loading…
Reference in New Issue
No está en la misma transacción