Skip to content

Commit

Permalink
chore: update status, do not query on correlationId when we have stat…
Browse files Browse the repository at this point in the history
…usListId
  • Loading branch information
sanderPostma committed Feb 4, 2025
1 parent 9eaa325 commit 5ac04fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vc-status-list-issuer-rest-api/src/api-functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ export function updateStatusEndpoint(router: Router, context: IRequiredContext,
}
statusListEntry = await driver.getStatusListEntryByIndex({
statusListIndex: updateRequest.statusListIndex,
statusListId,
correlationId: statusListCorrelationId,
...(statusListId && { statusListId }),
...(!statusListId && { correlationId: statusListCorrelationId }), // Do not query for correlationId when we have statusListId
errorOnNotFound: true,
})
}
Expand Down

0 comments on commit 5ac04fd

Please sign in to comment.