Commit 854d5927 authored by Pithon Kabiro's avatar Pithon Kabiro
Browse files

Edit function: extract metadata properties

Add two new aggregation type strings. Now there a four supported
aggregation type strings
parent 0af389b7
1 merge request!12Add functionality to calculate min / max
Showing with 3 additions and 1 deletion
+3 -1
...@@ -119,11 +119,13 @@ const extractPropertiesFromFormattedDatastreamMetadata = function ( ...@@ -119,11 +119,13 @@ const extractPropertiesFromFormattedDatastreamMetadata = function (
if ( if (
isMetadataForAggregation && isMetadataForAggregation &&
aggregationType !== "minimum" &&
aggregationType !== "maximum" &&
aggregationType !== "sum" && aggregationType !== "sum" &&
aggregationType !== "average" aggregationType !== "average"
) )
throw new Error( 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 // Create arrays from the properties of the formatted datastream metadata
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment