From 75930680a2b7c131f288f088a6592c4fe98b80c8 Mon Sep 17 00:00:00 2001 From: Phillip Wirth Date: Tue, 7 Nov 2023 14:54:37 +0100 Subject: [PATCH] BC-4887 fix sorting by _id --- apps/server/src/modules/account/repo/account.repo.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/server/src/modules/account/repo/account.repo.ts b/apps/server/src/modules/account/repo/account.repo.ts index d1872d1ca67..f8c1f5677ec 100644 --- a/apps/server/src/modules/account/repo/account.repo.ts +++ b/apps/server/src/modules/account/repo/account.repo.ts @@ -71,7 +71,7 @@ export class AccountRepo extends BaseRepo { * @deprecated For migration purpose only */ async findMany(offset = 0, limit = 100): Promise { - const result = await this._em.find(this.entityName, {}, { offset, limit, orderBy: { id: SortOrder.asc } }); + const result = await this._em.find(this.entityName, {}, { offset, limit, orderBy: { _id: SortOrder.asc } }); this._em.clear(); return result; }