mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-10-30 03:00:40 +00:00
updated name on import
This commit is contained in:
parent
87f933df4f
commit
5720017fb4
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue