a message when finished and access to old records
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import { formatDiffInMinutes } from '@/shared/format-date'
|
||||
import { toISODate, type ISODate } from '@/shared/types/date'
|
||||
import type { Recordable } from '../interfaces/recordable'
|
||||
import type { StepRecordable } from '../interfaces/step-recordable'
|
||||
@@ -13,14 +12,6 @@ export class TaskRecord implements Recordable {
|
||||
public readonly taskId: string
|
||||
) {}
|
||||
|
||||
public get duration(): number | null {
|
||||
if (!this.end) {
|
||||
return null
|
||||
}
|
||||
|
||||
return formatDiffInMinutes(this.start, this.end)
|
||||
}
|
||||
|
||||
public get hasStepRecords() {
|
||||
return Object.values(this.stepRecords).length > 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user