From 854d5927d1b7e43755b2e36fc4b37edf6ff6eda0 Mon Sep 17 00:00:00 2001 From: Pithon Kabiro <pithon.kabiro@hft-stuttgart.de> Date: Fri, 24 Sep 2021 13:55:57 +0200 Subject: [PATCH] Edit function: extract metadata properties Add two new aggregation type strings. Now there a four supported aggregation type strings --- public/js/src_modules/fetchedDataProcessing.mjs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/js/src_modules/fetchedDataProcessing.mjs b/public/js/src_modules/fetchedDataProcessing.mjs index 7d40960..ec6ee92 100644 --- a/public/js/src_modules/fetchedDataProcessing.mjs +++ b/public/js/src_modules/fetchedDataProcessing.mjs @@ -119,11 +119,13 @@ const extractPropertiesFromFormattedDatastreamMetadata = function ( if ( isMetadataForAggregation && + aggregationType !== "minimum" && + aggregationType !== "maximum" && aggregationType !== "sum" && aggregationType !== "average" ) throw new Error( - `The supported aggegation type strings are "sum" or "average"` + `The supported aggegation type strings are "minimum", "maximum", "sum" or "average"` ); // Create arrays from the properties of the formatted datastream metadata -- GitLab