Skip to content

Commit

Permalink
Manually integrated changes from development branch
Browse files Browse the repository at this point in the history
  • Loading branch information
mollybsmith-noaa committed Oct 21, 2024
1 parent 0d1f232 commit b0216a9
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3961,15 +3961,15 @@ const queryDBMapCTC = function (
let error = "";
let parsedData;

const Future = require("fibers/future");
const dFuture = new Future();

if (matsCollections.Settings.findOne().dbType === matsTypes.DbTypes.couchbase) {
/*
we have to call the couchbase utilities as async functions but this
routine 'queryDBSpecialtyCurve' cannot itself be async because the graph page needs to wait
for its result, so we use an anonymous async() function here to wrap the queryCB call
*/
const Future = require("fibers/future");
const dFuture = new Future();

let rows = null;
if (Array.isArray(statementOrMwRows)) {
rows = statementOrMwRows;
Expand Down Expand Up @@ -4025,9 +4025,6 @@ const queryDBMapCTC = function (
}
} else {
// if this app isn't couchbase, use mysql
const Future = require("fibers/future");
const dFuture = new Future();

pool.query(statementOrMwRows, function (err, rows) {
// query callback - build the curve data from the results - or set an error
if (err !== undefined && err !== null) {
Expand Down

0 comments on commit b0216a9

Please sign in to comment.