fix: inserta en workerTimeControlMail
gitea/salix/pipeline/head There was a failure building this commit Details

This commit is contained in:
Vicent Llopis 2023-04-04 09:52:46 +02:00
parent 02a1bcbfd3
commit 0bfa4c54aa
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',