Fix undefined decimal type serialization.

This commit is contained in:
Madeorsk 2024-09-30 22:53:42 +02:00
parent d96c39d079
commit 9cb2bf1e5c
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();
}
}