step records work with dates now

This commit is contained in:
Julien Calixte
2023-04-10 12:10:19 +02:00
parent fb02f28465
commit f432c60737
2 changed files with 2 additions and 2 deletions

View File

@@ -3,5 +3,5 @@ export interface Recordable {
taskId: string
start: Date
end?: Date
stepRecords: Record<string, { minutes: number }>
stepRecords: Record<string, { start: Date; end?: Date }>
}

View File

@@ -3,7 +3,7 @@ import type { Recordable } from '../interfaces/recordable'
export class TaskRecord implements Recordable {
public start: Date = new Date()
public end: Date | undefined = undefined
public stepRecords: Record<string, { minutes: number }> = {}
public stepRecords: Record<string, { start: Date; end?: Date }> = {}
public constructor(
public readonly id: string,