Skip to content

Commit

Permalink
feat: Minor update
Browse files Browse the repository at this point in the history
Signed-off-by: DaevMithran <[email protected]>
  • Loading branch information
DaevMithran committed Apr 13, 2023
1 parent 34304f4 commit 1e6ae48
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ export class CheqdAnonCredsRegistry implements AnonCredsRegistry {

const response = await cheqdDidResolver.resolveResource(
agentContext,
`${revocationRegistryId}&resourceType=anonCredsStatusList&resourceTime=${timestamp}`
`${revocationRegistryId}&resourceType=anonCredsStatusList&resourceVersionTime=${timestamp}`
)
const revocationStatusList = JsonTransformer.fromJSON(response.resource, CheqdRevocationStatusList)

Expand Down
2 changes: 1 addition & 1 deletion packages/cheqd/src/dids/CheqdDidResolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export class CheqdDidResolver implements DidResolver {
if (params.version) {
resource = resources.find((resource) => resource.version == params.version)
} else {
const date = params.resourceTime ? new Date(Number(params.resourceTime) * 1000) : new Date()
const date = params.resourceVersionTime ? new Date(Number(params.resourceVersionTime) * 1000) : new Date()
// find the resourceId closest to the created time
resource = getClosestResourceVersion(resources, date)
}
Expand Down

0 comments on commit 1e6ae48

Please sign in to comment.