From 1edf15ca2402c76ff2b733a984934fc1b8a041c0 Mon Sep 17 00:00:00 2001 From: leonnicolas Date: Thu, 26 Nov 2020 10:47:53 +0100 Subject: [PATCH] src/model/cargoBike.ts: fixed data type of bikeWidth --- src/datasources/db/utils.ts | 1 + src/model/CargoBike.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/datasources/db/utils.ts b/src/datasources/db/utils.ts index 995905c..0f62e60 100644 --- a/src/datasources/db/utils.ts +++ b/src/datasources/db/utils.ts @@ -67,6 +67,7 @@ export function genBoxDimensions (cargoBike: any) { delete cargoBike.dimensionsAndLoad.minBoxHeight; delete cargoBike.dimensionsAndLoad.maxBoxHeight; } + /** * Can be used in resolvers to specify, if entry is locked by other user. * Returns true if locked by other user. diff --git a/src/model/CargoBike.ts b/src/model/CargoBike.ts index 4193a41..10b2d78 100644 --- a/src/model/CargoBike.ts +++ b/src/model/CargoBike.ts @@ -156,7 +156,7 @@ export class DimensionsAndLoad { @Column({ nullable: true, - type: 'numrange' + type: 'decimal' }) bikeWidth: number;