Fix undefined date serialization.
This commit is contained in:
parent
9cb2bf1e5c
commit
180f68a079
2 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@sharkitek/core",
|
||||
"version": "2.1.2",
|
||||
"version": "2.1.3",
|
||||
"description": "Sharkitek core models library.",
|
||||
"keywords": [
|
||||
"sharkitek",
|
||||
|
|
|
@ -12,7 +12,7 @@ export class DateType extends Type<string, Date>
|
|||
|
||||
serialize(value: Date): string
|
||||
{
|
||||
return value.toISOString();
|
||||
return value?.toISOString();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue