hotFix(workerTimeControl): confirm correct url
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Alex Moreno 2024-07-17 13:40:57 +02:00
parent 021d315a01
commit d52a229613
1 changed files with 1 additions and 2 deletions

View File

@ -380,7 +380,6 @@ class Controller extends Section {
updateWorkerTimeControlMail(state, reason) {
const params = {
workerId: this.worker.id,
year: this.date.getFullYear(),
week: this.weekNumber,
state
@ -389,7 +388,7 @@ class Controller extends Section {
if (reason)
params.reason = reason;
const query = `WorkerTimeControls/updateMailState`;
const query = `WorkerTimeControls/${this.worker.id}/updateMailState`;
this.$http.post(query, params).then(() => {
this.getMailStates(this.date);
this.getWeekData();