This commit is contained in:
parent
0d558fb4f7
commit
375cb1acc0
|
@ -49,7 +49,7 @@ module.exports = Self => {
|
|||
]
|
||||
}
|
||||
}, myOptions);
|
||||
console.log(isRegistered);
|
||||
|
||||
if (!isRegistered) await models.MachineWorker.create({machineFk: machine.id, workerFk: userId}, myOptions);
|
||||
else {
|
||||
await models.MachineWorker.updateAll(
|
||||
|
|
Loading…
Reference in New Issue