Skip to content

Commit

Permalink
feat(admin): add fuzzy search support for user q with nickname
Browse files Browse the repository at this point in the history
  • Loading branch information
moonrailgun committed Aug 29, 2023
1 parent 7ca7e36 commit 923b373
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/admin/src/server/router/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ router.use(
auth(),
raExpressMongoose(userModel, {
q: ['_id', 'nickname', 'email'],
allowedRegexFields: ['nickname'],
})
);
router.delete('/messages/:id', auth(), async (req, res) => {
Expand Down

0 comments on commit 923b373

Please sign in to comment.