mirror of
https://github.com/docmost/docmost.git
synced 2025-11-14 13:41:09 +10:00
search space members by email (#1049)
This commit is contained in:
@ -119,11 +119,9 @@ export class SpaceMemberRepo {
|
|||||||
|
|
||||||
if (pagination.query) {
|
if (pagination.query) {
|
||||||
query = query.where((eb) =>
|
query = query.where((eb) =>
|
||||||
eb('users.name', 'ilike', `%${pagination.query}%`).or(
|
eb('users.name', 'ilike', `%${pagination.query}%`)
|
||||||
'groups.name',
|
.or('users.email', 'ilike', `%${pagination.query}%`)
|
||||||
'ilike',
|
.or('groups.name', 'ilike', `%${pagination.query}%`),
|
||||||
`%${pagination.query}%`,
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user