Skip to content

Commit

Permalink
fix for sessionIds that dont have persona attached
Browse files Browse the repository at this point in the history
  • Loading branch information
endimion committed Jun 10, 2024
1 parent 79cf823 commit 8af8b07
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions routes/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -852,6 +852,13 @@ function checkIfExistsIssuanceStatus(
let index = sessions.indexOf(sessionId);
console.log("index is");
console.log(index);
if (index < 0) {
sessions.forEach((value, _index) => {
if (value.replace(/-persona=\d+$/, "") === sessionId) {
index = _index;
}
});
}
if (index >= 0) {
let status = sessionResults[index].status;
console.log(`sending status ${status} for session ${sessionId}`);
Expand Down

0 comments on commit 8af8b07

Please sign in to comment.