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;