Skip to content

Commit 5c956e5

Browse files
committed
feat/anchor_to_cord:refactor anchor code with issueragent changes
1 parent 47eb565 commit 5c956e5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

services/credential-schema/src/schema/implementations/anchor-cord.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export class AnchorCordService implements BlockchainAnchor {
1414
`${process.env.ISSUER_AGENT_BASE_URL}/schema`,
1515
body,
1616
);
17-
return response.data.result;
17+
return response.data;
1818
} catch (err) {
1919
const errorDetails = {
2020
message: err.message,

services/credentials-service/src/credentials/implementations/anchor-cord.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export class AnchorCordService implements BlockchainAnchor {
4040
);
4141

4242
this.logger.debug('Credential successfully anchored');
43-
let anchoredResult = anchorHttpResponse.data.result;
43+
let anchoredResult = anchorHttpResponse.data;
4444
this.logger.debug('Credential successfully anchored to Cord:', anchoredResult);
4545
const {
4646
id, issuer, issuanceDate, validUntil: expirationDate, credentialSubject, proof,

0 commit comments

Comments
 (0)