Skip to content

Commit

Permalink
fix team training range
Browse files Browse the repository at this point in the history
  • Loading branch information
sansan88 committed Nov 21, 2023
1 parent 3b550a1 commit 1c0cb42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/services/firebase/training.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export class TrainingService {
where(
"date",
">=",
Timestamp.fromDate(new Date(Date.now() - 1000 * 3600 * 24 * 7))
Timestamp.fromDate(new Date(Date.now() - 1000 * 3600 * 24 * 1))
)
); // heute - 1 Woche
return collectionData(q, { idField: "id" }) as unknown as Observable<
Expand All @@ -84,7 +84,7 @@ export class TrainingService {
where(
"date",
"<",
Timestamp.fromDate(new Date(Date.now() - 1000 * 3600 * 24 * 7))
Timestamp.fromDate(new Date(Date.now() - 1000 * 3600 * 24 * 1))
),
limit(20)
); // heute - 1 Woche
Expand Down

0 comments on commit 1c0cb42

Please sign in to comment.