Skip to content

Commit 55caeef

Browse files
author
David Lenton
committed
Merged in fix-journey-502-error (pull request auth0#19)
Applies 502 fix to getJourneyNextItem
2 parents 2cb1f79 + c5cec51 commit 55caeef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routes/api/account.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ module.exports = function (app) {
498498
} else {
499499
req.user.getJourneyNextItem((err, s) => {
500500
if (err) return next(err);
501-
if (!s) return res.json({});
501+
if (!s || !s.program) return res.json({});
502502
req.user.getJourneyPercentage(s.program.id, (err, p) => {
503503
if (err) return next(err);
504504
if (s && s.next) delete s.next;

0 commit comments

Comments
 (0)