Skip to content

Commit

Permalink
Fixed query function bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mollybsmith-noaa committed Aug 10, 2023
1 parent 0236df0 commit 4ddc20b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 4ddc20b

Please sign in to comment.