refs #4856 añadido myOptions
gitea/salix/pipeline/head There was a failure building this commit Details

This commit is contained in:
Vicent Llopis 2023-04-06 10:06:29 +02:00
parent 041590e541
commit 8a297469d6
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ module.exports = Self => {
}, myOptions);
if (workerTimeControlMail && workerTimeControlMail.state != 'SENDED') {
const worker = await models.EmailUser.findById(workerId);
const worker = await models.EmailUser.findById(workerId, null, myOptions);
ctx.args = {
recipient: worker.email,
year: yearNumber,