diff --git a/apps/api-gateway/src/issuance/issuance.controller.ts b/apps/api-gateway/src/issuance/issuance.controller.ts index e760b4129..438c43126 100644 --- a/apps/api-gateway/src/issuance/issuance.controller.ts +++ b/apps/api-gateway/src/issuance/issuance.controller.ts @@ -537,7 +537,7 @@ async downloadBulkIssuanceCSVTemplate( const bulkIssuanceDetails = await this.issueCredentialService.retryBulkCredential( fileId, orgId, - clientDetails.clientId + clientDetails ); const finalResponse: IResponseType = { statusCode: HttpStatus.CREATED, diff --git a/apps/api-gateway/src/issuance/issuance.service.ts b/apps/api-gateway/src/issuance/issuance.service.ts index e3b9cda71..0a112e382 100644 --- a/apps/api-gateway/src/issuance/issuance.service.ts +++ b/apps/api-gateway/src/issuance/issuance.service.ts @@ -124,8 +124,8 @@ export class IssuanceService extends BaseService { return this.sendNatsMessage(this.issuanceProxy, 'issue-bulk-credentials', payload); } - async retryBulkCredential(fileId: string, orgId: string, clientId: string): Promise<{ response: object }> { - const payload = { fileId, orgId, clientId }; + async retryBulkCredential(fileId: string, orgId: string, clientDetails: ClientDetails): Promise<{ response: object }> { + const payload = { fileId, orgId, clientDetails }; return this.sendNats(this.issuanceProxy, 'retry-bulk-credentials', payload); } diff --git a/apps/issuance/src/issuance.controller.ts b/apps/issuance/src/issuance.controller.ts index 02886f63d..272eca286 100644 --- a/apps/issuance/src/issuance.controller.ts +++ b/apps/issuance/src/issuance.controller.ts @@ -95,8 +95,8 @@ export class IssuanceController { } @MessagePattern({ cmd: 'retry-bulk-credentials' }) - async retryeBulkCredentials(payload: { fileId: string, orgId: string, clientId: string }): Promise { - return this.issuanceService.retryBulkCredential(payload.fileId, payload.orgId, payload.clientId); + async retryeBulkCredentials(payload: { fileId: string, orgId: string, clientDetails: IClientDetails }): Promise { + return this.issuanceService.retryBulkCredential(payload.fileId, payload.orgId, payload.clientDetails); } @MessagePattern({ cmd: 'delete-issuance-records' }) diff --git a/apps/issuance/src/issuance.service.ts b/apps/issuance/src/issuance.service.ts index ce7752154..a21ae2bbf 100644 --- a/apps/issuance/src/issuance.service.ts +++ b/apps/issuance/src/issuance.service.ts @@ -1407,7 +1407,7 @@ async sendEmailForCredentialOffer(sendEmailCredentialOffer: SendEmailCredentialO } } - async retryBulkCredential(fileId: string, orgId: string, clientId: string): Promise { + async retryBulkCredential(fileId: string, orgId: string, clientDetails: IClientDetails): Promise { let bulkpayloadRetry; try { const fileDetails = await this.issuanceRepository.getFileDetailsById(fileId); @@ -1422,9 +1422,11 @@ async sendEmailForCredentialOffer(sendEmailCredentialOffer: SendEmailCredentialO try { const bulkPayloadDetails: BulkPayloadDetails = { - clientId, + clientId : clientDetails.clientId, orgId, - isRetry: true + isRetry: true, + organizationLogoUrl: clientDetails?.organizationLogoUrl, + platformName: clientDetails?.platformName }; this.processInBatches(bulkpayloadRetry, bulkPayloadDetails); } catch (error) {