Skip to content

Commit

Permalink
Fix date ordering for upcoming
Browse files Browse the repository at this point in the history
  • Loading branch information
JHWelch committed Aug 6, 2023
1 parent 406d7c1 commit fbbdcf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/weekController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default class WeekController {
}

async getUpcomingWeeks(): Promise<Week[]> {
return this.getWeeks(where('date', '>=', this.today()), orderBy('date', 'desc'))
return this.getWeeks(where('date', '>=', this.today()), orderBy('date'))
}

async getWeeks(where: QueryFieldFilterConstraint, constraint: QueryConstraint): Promise<Week[]> {
Expand Down

0 comments on commit fbbdcf6

Please sign in to comment.