Fix undefined decimal type serialization.

This commit is contained in:
Madeorsk 2024-09-30 22:53:42 +02:00
parent d96c39d079
commit cd8de0e2bf
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",
"version": "2.1.1",
"version": "2.1.2",
"description": "Sharkitek core models library.",
"keywords": [
"sharkitek",

View File

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