Skip to content

Commit

Permalink
Fix for bot
Browse files Browse the repository at this point in the history
  • Loading branch information
rbjarnason committed Jan 17, 2020
1 parent 8b117f0 commit 874115d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server_api/controllers/nonSpa.js
Original file line number Diff line number Diff line change
Expand Up @@ -428,9 +428,9 @@ router.get('/*', function botController(req, res, next) {
log.error("Cant find controller for nonSpa", { id, splitUrl });
res.sendStatus(404);
}
} else if (req.ypCommunity) {
} else if (req.ypCommunity && req.ypCommunity.id != null) {
sendCommunity(req.ypCommunity.id, req, res)
} else if (req.ypDomain) {
} else if (req.ypDomain && req.ypDomain.id != null) {
sendDomain(req.ypDomain.id, req, res)
} else {
log.error("Id for nonSpa is not a number", { id: id });
Expand Down

0 comments on commit 874115d

Please sign in to comment.