This commit is contained in:
parent
c46797d57e
commit
3853fc7404
|
@ -33,7 +33,13 @@ module.exports = Self => {
|
||||||
|
|
||||||
const subordinate = await Worker.findById(data.workerFk);
|
const subordinate = await Worker.findById(data.workerFk);
|
||||||
|
|
||||||
return Self.rawSql('CALL vn.workerTimeControl_add(?, ?, ?, ?)', [
|
return Self.create({
|
||||||
subordinate.userFk, null, data.timed, true]);
|
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