Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
Signed-off-by: Abhinav Kumar <[email protected]>
  • Loading branch information
abhinavkrin committed Dec 10, 2024
1 parent aa02c7a commit 7c92475
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/meteor/app/api/server/v1/channels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion apps/meteor/app/api/server/v1/groups.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 7c92475

Please sign in to comment.