diff --git a/lib/insights/velocity.ts b/lib/insights/velocity.ts index 528b321..7cf123e 100644 --- a/lib/insights/velocity.ts +++ b/lib/insights/velocity.ts @@ -33,7 +33,7 @@ export async function getVelocity(userId: string, sprintsBack = 5): Promise s.completed_at != null).reverse() const result: VelocitySprint[] = chronological.map(sprint => ({ sprintId: sprint.id, @@ -41,7 +41,7 @@ export async function getVelocity(userId: string, sprintsBack = 5): Promise t.status === 'DONE').length, - completedAt: sprint.completed_at!.toISOString(), + completedAt: sprint.completed_at.toISOString(), })) const seen = new Set()