From c484bb6b8353e6c197a02c322502fc937bc71d3b Mon Sep 17 00:00:00 2001 From: bhavanakarwade Date: Wed, 24 Jul 2024 16:15:40 +0530 Subject: [PATCH] wip: pretty for bulk issuance Signed-off-by: bhavanakarwade Signed-off-by: KulkarniShashank --- apps/api-gateway/src/issuance/issuance.controller.ts | 2 +- apps/api-gateway/src/issuance/issuance.service.ts | 4 ++-- apps/issuance/src/issuance.service.ts | 5 ++++- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/apps/api-gateway/src/issuance/issuance.controller.ts b/apps/api-gateway/src/issuance/issuance.controller.ts index 04b520c40..0582d3122 100644 --- a/apps/api-gateway/src/issuance/issuance.controller.ts +++ b/apps/api-gateway/src/issuance/issuance.controller.ts @@ -550,7 +550,7 @@ async downloadBulkIssuanceCSVTemplate( const finalResponse: IResponseType = { statusCode: HttpStatus.CREATED, message: ResponseMessages.issuance.success.bulkIssuance, - data: bulkIssuanceDetails.response + data: bulkIssuanceDetails }; return res.status(HttpStatus.CREATED).json(finalResponse); } diff --git a/apps/api-gateway/src/issuance/issuance.service.ts b/apps/api-gateway/src/issuance/issuance.service.ts index 253b8846f..0e46a394b 100644 --- a/apps/api-gateway/src/issuance/issuance.service.ts +++ b/apps/api-gateway/src/issuance/issuance.service.ts @@ -122,9 +122,9 @@ export class IssuanceService extends BaseService { return this.sendNatsMessage(this.issuanceProxy, 'issue-bulk-credentials', payload); } - async retryBulkCredential(fileId: string, orgId: string, clientDetails: ClientDetails): Promise<{ response: object }> { + async retryBulkCredential(fileId: string, orgId: string, clientDetails: ClientDetails): Promise { const payload = { fileId, orgId, clientDetails }; - return this.sendNats(this.issuanceProxy, 'retry-bulk-credentials', payload); + return this.sendNatsMessage(this.issuanceProxy, 'retry-bulk-credentials', payload); } async _getWebhookUrl(tenantId: string): Promise { diff --git a/apps/issuance/src/issuance.service.ts b/apps/issuance/src/issuance.service.ts index 7180f037b..5236b39b4 100644 --- a/apps/issuance/src/issuance.service.ts +++ b/apps/issuance/src/issuance.service.ts @@ -1465,7 +1465,10 @@ return newCacheKey; orgId, isRetry: true, organizationLogoUrl: clientDetails?.organizationLogoUrl, - platformName: clientDetails?.platformName + platformName: clientDetails?.platformName, + certificate: clientDetails?.certificate, + size: clientDetails?.size, + orientation: clientDetails?.orientation }; this.processInBatches(bulkpayloadRetry, bulkPayloadDetails); } catch (error) {