Skip to content

Commit

Permalink
fix: add date to ignored metatypes
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcdo29 committed Oct 25, 2023
1 parent e06a650 commit f3141fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/common/pipes/validation.pipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export class ValidationPipe implements PipeTransform<any> {
if (type === 'custom' && !this.validateCustomDecorators) {
return false;
}
const types = [String, Boolean, Number, Array, Object, Buffer];
const types = [String, Boolean, Number, Array, Object, Buffer, Date];
return !types.some(t => metatype === t) && !isNil(metatype);
}

Expand Down

0 comments on commit f3141fb

Please sign in to comment.