Skip to content

Commit

Permalink
fixed this bug but its not the right way.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vishwas1 committed Sep 2, 2024
1 parent 4950591 commit 1eecf60
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/app-auth/dtos/create-app.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ export class CreateAppDto {
})
@IsOptional()
@IsArray()
@Matches(/^(https?:\/\/[^ ]+|\*)$/, {
each: true,
message: 'Whitelisted cors must be a valid url or *',
})
// @Matches(/^(https?:\/\/[^ ]+|\*)$/, {
// each: true,
// message: 'Whitelisted cors must be a valid url or *',
// })
@Validate(SanitizeUrlValidator)
whitelistedCors: Array<string>;

Expand Down
8 changes: 4 additions & 4 deletions src/app-auth/dtos/update-app.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ export class UpdateAppDto {
})
@IsOptional()
@IsArray()
@Matches(/^(https?:\/\/[^ ]+|\*)$/, {
each: true,
message: 'Whitelisted cors must be a valid url or *',
})
// @Matches(/^(https?:\/\/[^ ]+|\*)$/, {
// each: true,
// message: 'Whitelisted cors must be a valid url or *',
// })
@Validate(SanitizeUrlValidator)
whitelistedCors: Array<string>;
@ApiProperty({
Expand Down

0 comments on commit 1eecf60

Please sign in to comment.