From 5ba70f65c3967e7f829794dd3bd7f02df458c321 Mon Sep 17 00:00:00 2001 From: Matt Cavanagh Date: Fri, 15 Mar 2024 13:53:26 +0000 Subject: [PATCH] WIP --- .../global/rest.aggregate.global.victory.controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/rest/controllers/aggregates/global/rest.aggregate.global.victory.controller.ts b/src/modules/rest/controllers/aggregates/global/rest.aggregate.global.victory.controller.ts index 76812f53..95787def 100644 --- a/src/modules/rest/controllers/aggregates/global/rest.aggregate.global.victory.controller.ts +++ b/src/modules/rest/controllers/aggregates/global/rest.aggregate.global.victory.controller.ts @@ -65,7 +65,7 @@ export default class RestGlobalVictoryAggregateController extends BaseGlobalAggr }; const key = `cache:endpoints:victories:W:${world ?? 0}-Z:${zone ?? 0}-B:${bracket ?? 0}-ET:${ps2AlertsEventType ?? 0}-DF:${dateFrom ? dateFrom.toString() : 0}-DT:${dateTo ? dateTo.toString() : 0}`; - const pagination = new Pagination({sortBy: 'date', order: 'desc'}); + const pagination = new Pagination({sortBy: 'date', order: 'asc'}); // eslint-disable-next-line @typescript-eslint/no-unsafe-return return await this.cacheService.get(key) ?? await this.cacheService.set(