step records work with dates now
This commit is contained in:
@@ -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 }>
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user