solved conflicts
gitea/salix/test Something is wrong with the build of this commit
Details
gitea/salix/test Something is wrong with the build of this commit
Details
This commit is contained in:
parent
0e40d11c6d
commit
6f691353a3
|
@ -32,11 +32,12 @@ module.exports = Self => {
|
||||||
throw new UserError(`You don't have enough privileges`);
|
throw new UserError(`You don't have enough privileges`);
|
||||||
|
|
||||||
const subordinate = await Worker.findById(data.workerFk);
|
const subordinate = await Worker.findById(data.workerFk);
|
||||||
|
const timed = new Date(data.timed);
|
||||||
|
|
||||||
return Self.create({
|
let offset = timed.getTimezoneOffset() * 60000;
|
||||||
userFk: subordinate.userFk,
|
timed.setTime(timed.getTime() - offset);
|
||||||
timed: data.timed,
|
|
||||||
manual: 1
|
return Self.rawSql('CALL vn.workerTimeControl_add(?, ?, ?, ?)', [
|
||||||
});
|
subordinate.userFk, null, timed, true]);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue