7152-devToTest_2414 #2228
|
@ -42,7 +42,7 @@ module.exports = Self => {
|
|||
const machineWorker = await models.MachineWorker.findOne({
|
||||
where: {
|
||||
workerFk: userId,
|
||||
inTime: {gte: new Date(Date.now() - maxHours * 60 * 60 * 1000)},
|
||||
inTime: {gte: Date.vnNew() - (maxHours * 60 * 60 * 1000)},
|
||||
outTimed: null,
|
||||
machineFk: machine.id,
|
||||
}
|
||||
|
@ -50,7 +50,7 @@ module.exports = Self => {
|
|||
});
|
||||
if (machineWorker) {
|
||||
await machineWorker.updateAttributes({
|
||||
outTime: new Date(Date.now())
|
||||
outTime: Date.now()
|
||||
}, myOptions);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue