Skip to content

Commit

Permalink
HOTFIX: how long was this broken?
Browse files Browse the repository at this point in the history
  • Loading branch information
Ratstail91 committed Jan 1, 2024
1 parent ee705c6 commit 7429c4a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "auth-server",
"version": "1.8.5",
"version": "1.8.6",
"description": "An API centric auth server. Uses Sequelize and mariaDB by default.",
"main": "server/server.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion server/auth/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 || ''
}
});

Expand Down

0 comments on commit 7429c4a

Please sign in to comment.