Skip to content

Commit 3e00a4e

Browse files
committed
fix/resolved comments
Signed-off-by: Sujit <[email protected]>
1 parent 679cfcd commit 3e00a4e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

apps/issuance/src/issuance.repository.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ export class IssuanceRepository {
742742
}
743743
}
744744

745-
async saveSchemaIdIssuance(threadId: string, schemaId: string): Promise<void> {
745+
async updateSchemaIdByThreadId(threadId: string, schemaId: string): Promise<void> {
746746
try {
747747
await this.prisma.credentials.update({
748748
where: { threadId },

apps/issuance/src/issuance.service.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -286,9 +286,9 @@ export class IssuanceService {
286286
if (Array.isArray(context) && context.includes(CommonConstants.W3C_SCHEMA_URL)) {
287287
const filterData = context.filter((item) => CommonConstants.W3C_SCHEMA_URL !== item);
288288
const [schemaId] = filterData;
289-
results.forEach((val) => {
290-
if (PromiseResult.FULFILLED === val.status && val?.value?.threadId) {
291-
this.issuanceRepository.saveSchemaIdIssuance(val?.value?.threadId, schemaId);
289+
results.forEach((record) => {
290+
if (PromiseResult.FULFILLED === record.status && record?.value?.threadId) {
291+
this.issuanceRepository.updateSchemaIdByThreadId(record?.value?.threadId, schemaId);
292292
}
293293
});
294294
}
@@ -1081,7 +1081,7 @@ export class IssuanceService {
10811081
const filterData = w3cSchemaId.filter((item) => CommonConstants.W3C_SCHEMA_URL !== item);
10821082
const [schemaId] = filterData;
10831083
if (credentialCreateOfferDetails.response.credentialRequestThId) {
1084-
this.issuanceRepository.saveSchemaIdIssuance(
1084+
this.issuanceRepository.updateSchemaIdByThreadId(
10851085
credentialCreateOfferDetails.response.credentialRequestThId,
10861086
schemaId
10871087
);

0 commit comments

Comments
 (0)