Skip to content

Commit

Permalink
fix: Fix problem with /status-list/update/encrypted API - it doesn'…
Browse files Browse the repository at this point in the history
…t work [DEV-3182] (#366)

* Fix problem with calling an incorrect method
inside updateEncryptedStatusList2021.

* Update package-lock.json.
  • Loading branch information
abdulla-ashurov authored Sep 5, 2023
1 parent 2036578 commit fbb7af4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions src/services/identity/postgres.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import {
VerificationOptions,
CreateEncryptedStatusListOptions,
FeePaymentOptions,
UpdateEncryptedStatusListOptions,
} from '../../types/shared.js';
import { Connection } from '../../database/connection/connection.js';
import type { CustomerEntity } from '../../database/entities/customer.entity.js';
Expand Down Expand Up @@ -295,14 +296,14 @@ export class PostgresIdentityService extends DefaultIdentityService {

async updateEncryptedStatusList2021(
did: string,
statusOptions: UpdateUnencryptedStatusListOptions,
statusOptions: UpdateEncryptedStatusListOptions,
agentId: string
): Promise<BulkRevocationResult | BulkSuspensionResult | BulkUnsuspensionResult> {
const agent = await this.createAgent(agentId);
if (!(await CustomerService.instance.find(agentId, { did }))) {
throw new Error(`${did} not found in wallet`);
}
return await Veramo.instance.updateUnencryptedStatusList2021(agent, did, statusOptions);
return await Veramo.instance.updateEncryptedStatusList2021(agent, did, statusOptions);
}

async checkStatusList2021(
Expand Down

0 comments on commit fbb7af4

Please sign in to comment.