Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,5 @@ Pull requests are welcome! Please read our [contributions guide](https://github.

## License

[Apache License Version 2.0](https://github.com/credebl/platform/blob/main/LICENSE)
[Apache License Version 2.0](https://github.com/credebl/platform/blob/main/LICENSE)

3 changes: 2 additions & 1 deletion apps/api-gateway/src/verification/verification.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -373,9 +373,10 @@ export class VerificationController {
async verifyPresentation(
@Res() res: Response,
@User() user: IUserRequest,
@Param('proofId') proofId: string,
@Param('proofId') rawProofId: string,
@Param('orgId') orgId: string
): Promise<Response> {
const proofID = rawProofID.trim();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of a trim, we can utilize the already present validation pipe

const verifyData = await this.verificationService.verifyPresentation(proofId, orgId, user);
const finalResponse: IResponse = {
statusCode: HttpStatus.CREATED,
Expand Down