Skip to content

Commit

Permalink
ADD: search by username
Browse files Browse the repository at this point in the history
  • Loading branch information
ayoubessabiry committed Nov 14, 2023
1 parent 3bf1381 commit 3217aa0
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion backend/code/src/users/users.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,12 @@ export class UsersService {
mode: 'insensitive',
},
},
{
Username: {
contains: name,
mode: 'insensitive',
},
},
],
NOT: {
blocked_by: {
Expand All @@ -121,9 +127,15 @@ export class UsersService {
{
lastName: {
contains: name,
mode: 'insensitive',
mode: 'insensitive',
},
},
{
Username: {
contains: name,
mode: 'insensitive',
},
}
],
},
},
Expand Down

0 comments on commit 3217aa0

Please sign in to comment.