Add query timeout to postgres
This commit is contained in:
parent
b2c7a43baa
commit
81277f95c0
1 changed files with 2 additions and 1 deletions
|
@ -4,7 +4,8 @@ const misc = require("../misc.js");
|
||||||
|
|
||||||
const { Pool } = require("pg");
|
const { Pool } = require("pg");
|
||||||
const connection = new Pool({
|
const connection = new Pool({
|
||||||
connectionString: process.env.DB
|
connectionString: process.env.DB,
|
||||||
|
statement_timeout: 10000
|
||||||
});
|
});
|
||||||
|
|
||||||
exports.getGuild = async (query) => {
|
exports.getGuild = async (query) => {
|
||||||
|
|
Loading…
Reference in a new issue