From fbbdcf603e58d26230b656897e141bb5363b1e29 Mon Sep 17 00:00:00 2001 From: Jordan Welch Date: Sun, 6 Aug 2023 17:37:39 -0500 Subject: [PATCH] Fix date ordering for upcoming --- src/controllers/weekController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/weekController.ts b/src/controllers/weekController.ts index 45efa49e..a7a19c8d 100644 --- a/src/controllers/weekController.ts +++ b/src/controllers/weekController.ts @@ -49,7 +49,7 @@ export default class WeekController { } async getUpcomingWeeks(): Promise { - 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 {