#6276 createNewWarehouse methods migrated from silex to salix #1850

Merged
jorgep merged 158 commits from 6276-createNewWarehouse into dev 2024-03-06 11:32:11 +00:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit e354de4ff5 - Show all commits

View File

@ -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()
jorgep marked this conversation as resolved Outdated

isHimself

isHimself
}, myOptions);
}