From c8d7ae74900c73562931773e0958360080ca544f Mon Sep 17 00:00:00 2001 From: Ayush Mukherjee Date: Thu, 3 Nov 2022 09:46:13 +0000 Subject: [PATCH] make the user history endpoint return chronologically backwards --- src/rank/rank.service.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rank/rank.service.ts b/src/rank/rank.service.ts index 433c73d..6b6a682 100644 --- a/src/rank/rank.service.ts +++ b/src/rank/rank.service.ts @@ -26,6 +26,7 @@ export class RankService { where: { userId, }, + order: ['createdAt', 'DESC'], }); }