Skip to content

Commit

Permalink
chore: statuslist correlationId fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderPostma committed Feb 3, 2025
1 parent 6113fce commit e350d5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/vc-status-list-issuer-rest-api/src/api-functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,6 @@ export function updateStatusEndpoint(router: Router, context: IRequiredContext,
let statusListCredential = details.statusListCredential

for (const updateItem of updateRequest.credentialStatus) {
if (updateItem.type && updateItem.type !== 'StatusList2021') {
return sendErrorResponse(response, 400, `Only the optional type 'StatusList2021' is currently supported`)
}

if (!updateItem.status) {
return sendErrorResponse(response, 400, `Required 'status' value was missing in the credentialStatus array`)
}
Expand Down
2 changes: 2 additions & 0 deletions packages/vc-status-list-issuer/src/agent/StatusListPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ export class StatusListPlugin implements IAgentPlugin {
credentialId,
statusListId,
driver: await getDriver({ dataSource, id: statusListId }),
statusEntryCorrelationId: rest.statusEntryCorrelationId ?? instance.correlationId,
})
return credential
}
Expand All @@ -164,6 +165,7 @@ export class StatusListPlugin implements IAgentPlugin {
...rest,
statusListId: statusListUri,
driver: await getDriver({ dataSource, id: statusListUri }),
statusEntryCorrelationId: rest.statusEntryCorrelationId ?? instance.correlationId,
})
return credential
}
Expand Down

0 comments on commit e350d5e

Please sign in to comment.