Fix undefined date serialization.

This commit is contained in:
Madeorsk 2024-09-30 22:58:17 +02:00
parent 9cb2bf1e5c
commit 498d25a909
Signed by: Madeorsk
GPG key ID: 677E51CA765BB79F
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
{ {
"name": "@sharkitek/core", "name": "@sharkitek/core",
"version": "2.1.2", "version": "2.1.3",
"description": "Sharkitek core models library.", "description": "Sharkitek core models library.",
"keywords": [ "keywords": [
"sharkitek", "sharkitek",

View file

@ -12,7 +12,7 @@ export class DateType extends Type<string, Date>
serialize(value: Date): string serialize(value: Date): string
{ {
return value.toISOString(); return value?.toISOString();
} }
} }