Skip to content

Commit

Permalink
Merge pull request #19 from hypersign-protocol/credentials
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
Pratap2018 authored Jan 27, 2023
2 parents 0dcf489 + 6d07cfe commit 1f097f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
6 changes: 0 additions & 6 deletions src/app-auth/gaurd/jwt.gaurd.ts

This file was deleted.

4 changes: 2 additions & 2 deletions src/utils/Pipes/boolean.pipe.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { PipeTransform, ArgumentMetadata, BadRequestException } from "@nestjs/common";

export class BooleanPipe implements PipeTransform {
transform(value: any, metadata: ArgumentMetadata) {
transform(value: any, metadata: ArgumentMetadata) {
if (value === 'true') {
return true;
} else if (value === 'false') {
} else if (value === 'false' || value===null || value===undefined) {
return false;
} else {
throw new BadRequestException(['Value must be true or false']);
Expand Down

0 comments on commit 1f097f6

Please sign in to comment.