Skip to content

Commit

Permalink
fix: parameter and response related bugs (#837)
Browse files Browse the repository at this point in the history
* fix: send email verification issue

Signed-off-by: bhavanakarwade <bhavana.karwade@ayanworks.com>

* refcator: schema endorsement flow

Signed-off-by: bhavanakarwade <bhavana.karwade@ayanworks.com>

* fix: resolved sonar lint issues

Signed-off-by: bhavanakarwade <bhavana.karwade@ayanworks.com>

* fix: worked on sonarcloud issues

Signed-off-by: bhavanakarwade <bhavana.karwade@ayanworks.com>

* fix: delete organization bugs

Signed-off-by: bhavanakarwade <bhavana.karwade@ayanworks.com>

* fix: cred def id space fixes

Signed-off-by: bhavanakarwade <bhavana.karwade@ayanworks.com>

* fix: create organization bug

Signed-off-by: bhavanakarwade <bhavana.karwade@ayanworks.com>

---------

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 11, 2024
1 parent effaaa9 commit 4686983
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion apps/api-gateway/src/issuance/dtos/issuance.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,8 @@ export class FileQuery {
}

export class RequestIdQuery {
@ApiProperty({ required: true })
@ApiPropertyOptional({ required: false })
@IsOptional()
@IsString({ message: 'requestId should be string' })
@IsNotEmpty({ message: 'requestId Id is required' })
@Transform(({ value }) => trim(value))
Expand Down
4 changes: 2 additions & 2 deletions apps/api-gateway/src/issuance/issuance.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ async downloadBulkIssuanceCSVTemplate(
@Query(new ValidationPipe({ transform: true })) query: RequestIdQuery,
@Query() previewFileDetails: PreviewFileDetails,
@Res() res: Response
): Promise<Response> {
): Promise<object> {

const { requestId } = query;
const previewCSVDetails = await this.issueCredentialService.previewCSVDetails(requestId, orgId, previewFileDetails);
Expand Down Expand Up @@ -505,7 +505,7 @@ async downloadBulkIssuanceCSVTemplate(
})
async getFileDetailsByFileId(
@Param('orgId') orgId: string,
@Param(new ValidationPipe({ transform: true })) query: FileQuery,
@Query(new ValidationPipe({ transform: true })) query: FileQuery,
@Query() fileParameter: FileParameter,
@Res() res: Response
): Promise<object> {
Expand Down

0 comments on commit 4686983

Please sign in to comment.