Fix undefined date serialization.
This commit is contained in:
parent
9cb2bf1e5c
commit
498d25a909
2 changed files with 2 additions and 2 deletions
|
@ -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",
|
||||||
|
|
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue