From f3141fbfdabd66de4485d76ce22c6e9b16dd55f8 Mon Sep 17 00:00:00 2001 From: Jay McDoniel Date: Tue, 24 Oct 2023 23:31:32 -0700 Subject: [PATCH] fix: add date to ignored metatypes --- packages/common/pipes/validation.pipe.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/common/pipes/validation.pipe.ts b/packages/common/pipes/validation.pipe.ts index d8632618163..6ee05a4adf9 100644 --- a/packages/common/pipes/validation.pipe.ts +++ b/packages/common/pipes/validation.pipe.ts @@ -179,7 +179,7 @@ export class ValidationPipe implements PipeTransform { 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); }