descuadre de horas #1766 rollback
gitea/salix/dev This commit looks good Details

This commit is contained in:
Joan Sanchez 2019-10-15 08:50:11 +02:00
parent c46797d57e
commit 3853fc7404
1 changed files with 8 additions and 2 deletions

View File

@ -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]); */
};
};