Skip to content

Commit

Permalink
chore: default status 0
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderPostma committed Feb 3, 2025
1 parent e350d5e commit 9eaa325
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vc-status-list-issuer/src/functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ async function processStatusListEntry(params: {
statusList: params.statusListId,
statusListIndex,
correlationId: params.opts?.statusEntryCorrelationId,
value: params.opts?.value,
value: params.opts?.value ?? 0, // For new entries the value may not be set. default to 0, otherwise the get API will return value null while for non-existing entries it will return 0
}
if (params.credentialId) {
updateArgs.credentialId = params.credentialId
Expand Down

0 comments on commit 9eaa325

Please sign in to comment.