mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-30 10:35:55 +01:00
add again
This commit is contained in:
@@ -45,9 +45,9 @@ postgresModule.questions = [
|
||||
},
|
||||
];
|
||||
|
||||
postgresModule.init = async function () {
|
||||
postgresModule.init = async function (opts) {
|
||||
const { Pool } = require('pg');
|
||||
const connOptions = connection.getConnectionOptions();
|
||||
const connOptions = connection.getConnectionOptions(opts);
|
||||
const pool = new Pool(connOptions);
|
||||
postgresModule.pool = pool;
|
||||
postgresModule.client = pool;
|
||||
|
||||
Reference in New Issue
Block a user