Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit 761649d

Browse files
committed
S-269146 fix 500 for unkown social ids
1 parent d11cc84 commit 761649d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

actions/user.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,10 +365,14 @@ function getUserIdentityByAuth0Id(api, connection, next) {
365365
}
366366
},
367367
function (result, cb) {
368+
if (!result[0]) {
369+
cb(notfound);
370+
} else {
368371
userid = result[0].user_id
369372
api.dataAccess.executeQuery('get_user_email_and_handle',
370373
{ userId: userid },
371374
dbConnectionMap, cb);
375+
}
372376
},
373377
function (rs, cb) {
374378
if (!rs[0]) {

0 commit comments

Comments
 (0)