From 0bfa4c54aac1e41c3590d1c19ed5f7cb8d3debe4 Mon Sep 17 00:00:00 2001 From: vicent Date: Tue, 4 Apr 2023 09:52:46 +0200 Subject: [PATCH] fix: inserta en workerTimeControlMail --- modules/worker/back/methods/worker-time-control/sendMail.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/worker/back/methods/worker-time-control/sendMail.js b/modules/worker/back/methods/worker-time-control/sendMail.js index 579a83112..4962e96f8 100644 --- a/modules/worker/back/methods/worker-time-control/sendMail.js +++ b/modules/worker/back/methods/worker-time-control/sendMail.js @@ -332,6 +332,12 @@ module.exports = Self => { const lastDay = days[index][days[index].length - 1]; if (day.workerFk != previousWorkerFk || day == lastDay) { + await models.WorkerTimeControlMail.create({ + workerFk: previousWorkerFk, + year: args.year, + week: args.week + }, myOptions); + const salix = await models.Url.findOne({ where: { appName: 'salix',