From d83533375fe66dede759fb28d30e022bfd907e92 Mon Sep 17 00:00:00 2001 From: leonnicolas Date: Wed, 25 Nov 2020 23:52:33 +0100 Subject: [PATCH] src/dataSource/ds/utils.ts: corrected comment --- src/datasources/db/utils.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/datasources/db/utils.ts b/src/datasources/db/utils.ts index be8fbf1..995905c 100644 --- a/src/datasources/db/utils.ts +++ b/src/datasources/db/utils.ts @@ -36,7 +36,7 @@ export function genDateRange (struct: any) { } /** - * This function prepares the cargoBike struct, to be used in an update or create. + * This function helps prepare the cargoBike struct, to be used in an update or create. * It creates the numrange attributes than can be understood by postgres. * @param from * @param to @@ -50,6 +50,11 @@ function genNumRange (from: number, to: number) { return from ? '[' + from + ',' + to + ']' : null; } +/** + * This function prepares the cargoBike struct, to be used in an update or create. + * It creates the numrange attributes than can be understood by postgres. + * @param cargoBike + */ export function genBoxDimensions (cargoBike: any) { cargoBike.dimensionsAndLoad.boxLengthRange = genNumRange(cargoBike.dimensionsAndLoad.minBoxLength, cargoBike.dimensionsAndLoad.maxBoxLength); cargoBike.dimensionsAndLoad.boxWidthRange = genNumRange(cargoBike.dimensionsAndLoad.minBoxWidth, cargoBike.dimensionsAndLoad.maxBoxWidth);