hotfix_sendMail_insertsIntoWorkerTimeControlMail #1419

Merged
joan merged 2 commits from hotfix_sendMail_insertsIntoWorkerTimeControlMail into master 2023-04-04 13:02:51 +00:00
1 changed files with 6 additions and 0 deletions

View File

@ -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',