File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change 9
9
Role ,
10
10
SortablePaginationInput ,
11
11
} from '~/common' ;
12
+ import { UserStatus } from './user-status.enum' ;
12
13
import { User } from './user.dto' ;
13
14
14
15
@InputType ( )
@@ -22,6 +23,9 @@ export abstract class UserFilters {
22
23
@OptionalField ( )
23
24
readonly title ?: string ;
24
25
26
+ @OptionalField ( ( ) => UserStatus )
27
+ readonly status ?: UserStatus ;
28
+
25
29
@ListField ( ( ) => Role , {
26
30
optional : true ,
27
31
empty : 'omit' ,
Original file line number Diff line number Diff line change @@ -391,6 +391,7 @@ export class UserRepository extends DtoRepository(User) {
391
391
export const userFilters = filter . define ( ( ) => UserFilters , {
392
392
id : filter . baseNodeProp ( ) ,
393
393
pinned : filter . isPinned ,
394
+ status : filter . propVal ( ) ,
394
395
name : filter . fullText ( {
395
396
index : ( ) => NameIndex ,
396
397
matchToNode : ( q ) =>
You can’t perform that action at this time.
0 commit comments