mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-28 17:46:16 +01:00
chore: eslint prefer-destructuring
This commit is contained in:
committed by
Julian Lam
parent
8d1462ffd8
commit
23f212a4c0
@@ -46,7 +46,7 @@ postgresModule.questions = [
|
||||
];
|
||||
|
||||
postgresModule.init = async function () {
|
||||
const Pool = require('pg').Pool;
|
||||
const { Pool } = require('pg');
|
||||
const connOptions = connection.getConnectionOptions();
|
||||
const pool = new Pool(connOptions);
|
||||
postgresModule.pool = pool;
|
||||
|
||||
Reference in New Issue
Block a user