feat(admin): add fuzzy search support for user `q` with `nickname`

pull/150/head
moonrailgun 2 years ago
parent 7ca7e36130
commit 923b373403

@ -172,6 +172,7 @@ router.use(
auth(),
raExpressMongoose(userModel, {
q: ['_id', 'nickname', 'email'],
allowedRegexFields: ['nickname'],
})
);
router.delete('/messages/:id', auth(), async (req, res) => {

Loading…
Cancel
Save