From 7c924758755295bdaf9dba05722e9e3a07be63ea Mon Sep 17 00:00:00 2001 From: Abhinav Kumar Date: Tue, 10 Dec 2024 18:25:57 +0530 Subject: [PATCH] minor fix Signed-off-by: Abhinav Kumar --- apps/meteor/app/api/server/v1/channels.ts | 2 +- apps/meteor/app/api/server/v1/groups.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/meteor/app/api/server/v1/channels.ts b/apps/meteor/app/api/server/v1/channels.ts index 08e0144e9ad82..0348bf5aed211 100644 --- a/apps/meteor/app/api/server/v1/channels.ts +++ b/apps/meteor/app/api/server/v1/channels.ts @@ -1111,7 +1111,7 @@ API.v1.addRoute( const { offset: skip, count: limit } = await getPaginationItems(this.queryParams); const { sort = {} } = await this.parseJsonQuery(); - const { status, filter, rolesOrder = ['leader', 'owner'] } = this.queryParams; + const { status, filter, rolesOrder = ['owner', 'moderator'] } = this.queryParams; const { members, total } = await findUsersOfRoomOrderedByRole({ rid: findResult._id, diff --git a/apps/meteor/app/api/server/v1/groups.ts b/apps/meteor/app/api/server/v1/groups.ts index f67072fd0d2c0..208ff666c39e8 100644 --- a/apps/meteor/app/api/server/v1/groups.ts +++ b/apps/meteor/app/api/server/v1/groups.ts @@ -762,7 +762,7 @@ API.v1.addRoute( const { offset: skip, count: limit } = await getPaginationItems(this.queryParams); const { sort = {} } = await this.parseJsonQuery(); - const { status, filter, rolesOrder } = this.queryParams; + const { status, filter, rolesOrder = ['owner', 'moderator'] } = this.queryParams; const { members, total } = await findUsersOfRoomOrderedByRole({ rid: findResult.rid,