File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -742,7 +742,7 @@ export class IssuanceRepository {
742
742
}
743
743
}
744
744
745
- async saveSchemaIdIssuance ( threadId : string , schemaId : string ) : Promise < void > {
745
+ async updateSchemaIdByThreadId ( threadId : string , schemaId : string ) : Promise < void > {
746
746
try {
747
747
await this . prisma . credentials . update ( {
748
748
where : { threadId } ,
Original file line number Diff line number Diff line change @@ -286,9 +286,9 @@ export class IssuanceService {
286
286
if ( Array . isArray ( context ) && context . includes ( CommonConstants . W3C_SCHEMA_URL ) ) {
287
287
const filterData = context . filter ( ( item ) => CommonConstants . W3C_SCHEMA_URL !== item ) ;
288
288
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 ) ;
292
292
}
293
293
} ) ;
294
294
}
@@ -1081,7 +1081,7 @@ export class IssuanceService {
1081
1081
const filterData = w3cSchemaId . filter ( ( item ) => CommonConstants . W3C_SCHEMA_URL !== item ) ;
1082
1082
const [ schemaId ] = filterData ;
1083
1083
if ( credentialCreateOfferDetails . response . credentialRequestThId ) {
1084
- this . issuanceRepository . saveSchemaIdIssuance (
1084
+ this . issuanceRepository . updateSchemaIdByThreadId (
1085
1085
credentialCreateOfferDetails . response . credentialRequestThId ,
1086
1086
schemaId
1087
1087
) ;
You can’t perform that action at this time.
0 commit comments