From 5d6bc958b9ca906278b8b106fff23277df6ea533 Mon Sep 17 00:00:00 2001 From: Giuliana Rigaud <62848434+giurigaud@users.noreply.github.com> Date: Tue, 3 Sep 2024 11:14:07 -0300 Subject: [PATCH] Fix/duplicate orgs - KI-986868: Duplicated organizations (#156) --- CHANGELOG.md | 3 +++ node/resolvers/Queries/Users.ts | 1 + 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2d8f3c1..15e14bb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +### Fixed +- Add sort to searchDocumentsWithPaginationInfo at getAllUsers + ## [1.44.3] - 2024-08-22 ### Fixed diff --git a/node/resolvers/Queries/Users.ts b/node/resolvers/Queries/Users.ts index b0385a9..5880505 100644 --- a/node/resolvers/Queries/Users.ts +++ b/node/resolvers/Queries/Users.ts @@ -78,6 +78,7 @@ export const getAllUsers = async ({ pageSize: PAGINATION.pageSize, }, schema: config.version, + sort: 'id asc', ...(where ? { where } : {}), })