Merge pull request #17717 from gustavotrott/fix-userlist-orderby

fix (html5): set correct orderby for graphql query of userlist
This commit is contained in:
Gustavo Trott 2023-04-25 10:53:36 -03:00 committed by GitHub
commit 12baa96d21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,14 @@
import { gql } from '@apollo/client';
export const USERS_SUBSCRIPTION = gql`subscription Users($offset: Int!, $limit: Int!) {
user(limit:$limit, offset: $offset, order_by: [{presenter: desc_nulls_last},{role: asc}, {name: asc}, {userId: asc}]) {
user(limit:$limit, offset: $offset,
order_by: [
{role: asc},
{emojiTime: asc_nulls_last},
{isDialIn: desc},
{hasDrawPermissionOnCurrentPage: desc},
{name: asc},
{userId: asc}
]) {
userId
extId
name