diff --git a/meteor_packages/mats-common/imports/startup/server/data_query_util.js b/meteor_packages/mats-common/imports/startup/server/data_query_util.js index 7d45b1c55..9368e591f 100644 --- a/meteor_packages/mats-common/imports/startup/server/data_query_util.js +++ b/meteor_packages/mats-common/imports/startup/server/data_query_util.js @@ -364,7 +364,7 @@ const queryDBTimeSeries = function ( } } else { // if this app isn't couchbase, use mysql - pool.query(statement, function (err, rows) { + pool.query(statementOrMwRows, function (err, rows) { // query callback - build the curve data from the results - or set an error if (err !== undefined && err !== null) { error = err.message; @@ -491,7 +491,7 @@ const queryDBSpecialtyCurve = function ( } } else { // if this app isn't couchbase, use mysql - pool.query(statement, function (err, rows) { + pool.query(statementOrMwRows, function (err, rows) { // query callback - build the curve data from the results - or set an error if (err !== undefined && err !== null) { error = err.message;