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}`
|
body: `${salix.url}worker/${previousWorkerFk}/time-control?timestamp=${timestamp}`
|
||||||
}, myOptions);
|
}, myOptions);
|
||||||
|
|
||||||
// await models.WorkerTimeControlMail.create({
|
query = `INSERT IGNORE INTO workerTimeControlMail (workerFk, year, week)
|
||||||
// workerFk: previousWorkerFk,
|
VALUES (?, ?, ?);`;
|
||||||
// week: args.week,
|
await Self.rawSql(query, [previousWorkerFk, args.year, args.week], myOptions);
|
||||||
// year: args.year
|
|
||||||
// }, myOptions);
|
|
||||||
|
|
||||||
previousWorkerFk = day.workerFk;
|
previousWorkerFk = day.workerFk;
|
||||||
previousReceiver = day.receiver;
|
previousReceiver = day.receiver;
|
||||||
|
|
Loading…
Reference in New Issue