mirror of
https://github.com/wassname/talk.git
synced 2026-08-13 12:40:11 +08:00
Add filters to list of people
This commit is contained in:
@@ -4,7 +4,11 @@ const { SEARCH_OTHER_USERS } = require('../../perms/constants');
|
||||
const { escapeRegExp } = require('../../services/regex');
|
||||
|
||||
const mergeState = (query, state) => {
|
||||
const { status } = state;
|
||||
const { role, status } = state;
|
||||
|
||||
if (role) {
|
||||
query.merge({ role });
|
||||
}
|
||||
|
||||
if (status) {
|
||||
const { username, banned, suspended } = status;
|
||||
|
||||
@@ -189,6 +189,7 @@ type UserStatus {
|
||||
}
|
||||
|
||||
input UserStateInput {
|
||||
role: USER_ROLES
|
||||
status: UserStatusInput
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user