7152-devToTest_2414 #2228
|
@ -49,7 +49,7 @@ module.exports = Self => {
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}, myOptions);
|
}, myOptions);
|
||||||
console.log(isRegistered);
|
|
||||||
if (!isRegistered) await models.MachineWorker.create({machineFk: machine.id, workerFk: userId}, myOptions);
|
if (!isRegistered) await models.MachineWorker.create({machineFk: machine.id, workerFk: userId}, myOptions);
|
||||||
else {
|
else {
|
||||||
await models.MachineWorker.updateAll(
|
await models.MachineWorker.updateAll(
|
||||||
|
|
Loading…
Reference in New Issue