Fix start time logic

pull/233/head
Piero Toffanin 2025-03-11 16:38:14 -04:00
rodzic b7dfe52273
commit 8e04292098
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -233,9 +233,9 @@ module.exports = class Task{
}
updateProcessingTime(resetTime){
this.processingTime = resetTime ?
this.processingTime = (resetTime || this.dateStarted === 0) ?
-1 :
new Date().getTime() - this.dateCreated;
new Date().getTime() - this.dateStarted;
}
startTrackingProcessingTime(){