Skip to content

Commit 7beb0a9

Browse files
committed
fix count to match searching
1 parent 9b0777b commit 7beb0a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/domains/user/service.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ const count = async (query) => {
6363
if (keyword) {
6464
// like search on multiple fields with keyword
6565
filter.$or = [
66-
{ username: { $regex: keyword, $options: 'i' } },
66+
{ email: { $regex: keyword, $options: 'i' } },
6767
{ displayName: { $regex: keyword, $options: 'i' } },
6868
];
6969
}

0 commit comments

Comments
 (0)