This commit is contained in:
parent
2a3d6dcd76
commit
c33906ca10
|
@ -33,7 +33,13 @@ module.exports = Self => {
|
|||
|
||||
const subordinate = await Worker.findById(data.workerFk);
|
||||
|
||||
return Self.rawSql('CALL vn.workerTimeControl_add(?, ?, ?, ?)', [
|
||||
subordinate.userFk, null, data.timed, true]);
|
||||
return Self.create({
|
||||
userFk: subordinate.userFk,
|
||||
timed: data.timed,
|
||||
manual: 1
|
||||
});
|
||||
|
||||
/* return Self.rawSql('CALL vn.workerTimeControl_add(?, ?, ?, ?)', [
|
||||
subordinate.userFk, null, data.timed, true]); */
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue