From 35ff3489a567577b6dcca2dc0eb6d7211098eb85 Mon Sep 17 00:00:00 2001 From: Jaap van Ekris <82339657+JaapvanEkris@users.noreply.github.com> Date: Tue, 10 Jan 2023 11:44:37 +0100 Subject: [PATCH] Fixed a typo in function name To add insult to injury: by a typo in the error logging function, the app would crash if there was a recoverable error --- app/engine/utils/FullTSLinearSeries.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/engine/utils/FullTSLinearSeries.js b/app/engine/utils/FullTSLinearSeries.js index b0e9c3d..1eab396 100644 --- a/app/engine/utils/FullTSLinearSeries.js +++ b/app/engine/utils/FullTSLinearSeries.js @@ -183,7 +183,7 @@ function createTSLinearSeries (maxSeriesLength = 0) { const mid = Math.floor(sortedArray.length / 2) return (sortedArray.length % 2 !== 0 ? sortedArray[mid] : ((sortedArray[mid - 1] + sortedArray[mid]) / 2)) } else { - log.eror('TS Linear Regressor, Median calculation on empty dataset attempted!') + log.error('TS Linear Regressor, Median calculation on empty dataset attempted!') return 0 } }