Skip to content

Commit

Permalink
wip: pretty for bulk issuance
Browse files Browse the repository at this point in the history
Signed-off-by: bhavanakarwade <bhavana.karwade@ayanworks.com>
Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com>
  • Loading branch information
bhavanakarwade authored and KulkarniShashank committed Sep 12, 2024
1 parent 03cf244 commit c484bb6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apps/api-gateway/src/issuance/issuance.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
4 changes: 2 additions & 2 deletions apps/api-gateway/src/issuance/issuance.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<object> {
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<string> {
Expand Down
5 changes: 4 additions & 1 deletion apps/issuance/src/issuance.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c484bb6

Please sign in to comment.