Skip to content

Commit

Permalink
BC-4887 fix sorting by _id (#4527)
Browse files Browse the repository at this point in the history
  • Loading branch information
Loki-Afro authored Nov 7, 2023
1 parent 01065dc commit aff2019
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/server/src/modules/account/repo/account.repo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export class AccountRepo extends BaseRepo<Account> {
* @deprecated For migration purpose only
*/
async findMany(offset = 0, limit = 100): Promise<Account[]> {
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;
}
Expand Down

0 comments on commit aff2019

Please sign in to comment.