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", "name": "@sharkitek/core",
"version": "2.1.1", "version": "2.1.2",
"description": "Sharkitek core models library.", "description": "Sharkitek core models library.",
"keywords": [ "keywords": [
"sharkitek", "sharkitek",

View file

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