Skip to content

Commit

Permalink
fix: only count approved hours for weekly count
Browse files Browse the repository at this point in the history
  • Loading branch information
rutmanz committed Sep 18, 2024
1 parent da90978 commit c0d1457
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/hour_operations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ export async function getWeeklyHours(): Promise<Record<string, number>> {
where: {
time_in: {
gte: new Date(new Date().getTime() - 1000 * 60 * 60 * 24 * 7)
}
},
state: 'complete'
},
_sum: {
duration: true
Expand Down

0 comments on commit c0d1457

Please sign in to comment.