HOTFIX: how long was this broken?

This commit is contained in:
2024-01-01 11:57:43 +11:00
parent ee705c6d43
commit 7429c4a1ee
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ router.use(tokenDecode);
router.use(async (req, res, next) => {
const record = await accounts.findOne({
where: {
email: req.user.email || ''
email: req.user?.email || ''
}
});