Hopefully plugged an undefined username hole
This commit is contained in:
@@ -12,7 +12,7 @@ router.use(tokenAuth);
|
||||
router.use(async (req, res, next) => {
|
||||
const record = await accounts.findOne({
|
||||
where: {
|
||||
username: req.user.username
|
||||
username: req.user.username || ''
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user