From 5720017fb41af8f0e4ecc66137aacfa8f2eb069a Mon Sep 17 00:00:00 2001 From: Christopher Pickering Date: Fri, 13 May 2022 08:40:46 -0500 Subject: [PATCH] updated name on import --- server/util-server.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/util-server.js b/server/util-server.js index c6d4e74be..5cc767264 100644 --- a/server/util-server.js +++ b/server/util-server.js @@ -10,7 +10,7 @@ const chardet = require("chardet"); const mqtt = require("mqtt"); const chroma = require("chroma-js"); const { badgeConstants } = require("./config"); -const sql = require("mssql"); +const mssql = require("mssql"); // From ping-lite exports.WIN = /^win/.test(process.platform); @@ -212,11 +212,11 @@ exports.dnsResolve = function (hostname, resolverServer, rrtype) { */ exports.sqlserver = function (connectionString, query) { return new Promise((resolve, reject) => { - sql.on("error", err => { + mssql.on("error", err => { reject(err); }); - sql.connect(connectionString).then(pool => { + mssql.connect(connectionString).then(pool => { return pool.request() .query(query);