Rename activeTime in TaskScheduleStopResponse to workTime to match angular model (Fix NAN minutes in dashboard)
All checks were successful
Java CI with Maven / build (push) Successful in 45s

This commit is contained in:
Sebastian Böckelmann 2023-11-13 19:32:28 +01:00
parent fa6b1b4fa1
commit 290cdd2fbf
2 changed files with 7 additions and 6 deletions

View File

@ -2,17 +2,17 @@ package core.api.models.timemanager.taskSchedule;
public class TaskScheduleStopResponse {
private int activeTime;
private int workTime;
public TaskScheduleStopResponse(int activeTime) {
this.activeTime = activeTime;
this.workTime = activeTime;
}
public int getActiveTime() {
return activeTime;
public int getWorkTime() {
return workTime;
}
public void setActiveTime(int activeTime) {
this.activeTime = activeTime;
public void setWorkTime(int workTime) {
this.workTime = workTime;
}
}

View File

@ -63,6 +63,7 @@ export class ActiveScheduleComponent implements OnInit{
schedule: this.activeSchedule!,
workedMinutes: resp.workTime
})
console.log(resp.workTime)
this.activeSchedule = undefined
}
})