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

This commit is contained in:
Joan Sanchez 2019-10-15 08:50:11 +02:00
parent 2a3d6dcd76
commit c33906ca10
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]); */
};
};