mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-28 17:46:16 +01:00
chore: eslint no-var, vars-on-top
This commit is contained in:
committed by
Julian Lam
parent
b56d9e12b5
commit
dab3b23575
@@ -64,7 +64,7 @@ postgresModule.init = async function () {
|
||||
|
||||
|
||||
async function checkUpgrade(client) {
|
||||
var res = await client.query(`
|
||||
const res = await client.query(`
|
||||
SELECT EXISTS(SELECT *
|
||||
FROM "information_schema"."columns"
|
||||
WHERE "table_schema" = 'public'
|
||||
@@ -331,7 +331,7 @@ postgresModule.createIndices = function (callback) {
|
||||
return callback();
|
||||
}
|
||||
|
||||
var query = postgresModule.pool.query.bind(postgresModule.pool);
|
||||
const query = postgresModule.pool.query.bind(postgresModule.pool);
|
||||
|
||||
winston.info('[database] Checking database indices.');
|
||||
async.series([
|
||||
@@ -348,7 +348,7 @@ postgresModule.createIndices = function (callback) {
|
||||
};
|
||||
|
||||
postgresModule.checkCompatibility = function (callback) {
|
||||
var postgresPkg = require('pg/package.json');
|
||||
const postgresPkg = require('pg/package.json');
|
||||
postgresModule.checkCompatibilityVersion(postgresPkg.version, callback);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user