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
......@@ -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
......
Markdown is supported
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