fix: sustituido insert por insert ignore
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
ab739f412f
commit
626355d251
|
@ -350,11 +350,9 @@ module.exports = Self => {
|
|||
body: `${salix.url}worker/${previousWorkerFk}/time-control?timestamp=${timestamp}`
|
||||
}, myOptions);
|
||||
|
||||
// await models.WorkerTimeControlMail.create({
|
||||
// workerFk: previousWorkerFk,
|
||||
// week: args.week,
|
||||
// year: args.year
|
||||
// }, myOptions);
|
||||
query = `INSERT IGNORE INTO workerTimeControlMail (workerFk, year, week)
|
||||
VALUES (?, ?, ?);`;
|
||||
await Self.rawSql(query, [previousWorkerFk, args.year, args.week], myOptions);
|
||||
|
||||
previousWorkerFk = day.workerFk;
|
||||
previousReceiver = day.receiver;
|
||||
|
|
Loading…
Reference in New Issue