Merge branch '1763-worker_time_control_add' of verdnatura/salix into master
gitea/salix/master This commit looks good
Details
gitea/salix/master This commit looks good
Details
LGTM
This commit is contained in:
commit
9f608b725b
|
@ -33,10 +33,7 @@ module.exports = Self => {
|
|||
|
||||
const subordinate = await Worker.findById(data.workerFk);
|
||||
|
||||
return Self.create({
|
||||
userFk: subordinate.userFk,
|
||||
timed: data.timed,
|
||||
manual: 1
|
||||
});
|
||||
return Self.rawSql('CALL vn.workerTimeControl_add(?, ?, ?, ?)', [
|
||||
subordinate.userFk, null, data.timed, true]);
|
||||
};
|
||||
};
|
||||
|
|
|
@ -238,9 +238,7 @@ class Controller {
|
|||
if (response === 'ACCEPT') {
|
||||
let data = {workerFk: this.worker.id, timed: this.newTime};
|
||||
let query = `/api/WorkerTimeControls/addTime`;
|
||||
this.$http.post(query, data).then(() => {
|
||||
this.refresh();
|
||||
});
|
||||
this.$http.post(query, data).then(() => this.refresh());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue