From 81277f95c0c48b5cc25a342fbbb1b0764bf80fa4 Mon Sep 17 00:00:00 2001 From: Essem Date: Tue, 10 Aug 2021 18:35:26 -0500 Subject: [PATCH] Add query timeout to postgres --- utils/database/postgresql.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/database/postgresql.js b/utils/database/postgresql.js index beefa67..0938c3c 100644 --- a/utils/database/postgresql.js +++ b/utils/database/postgresql.js @@ -4,7 +4,8 @@ const misc = require("../misc.js"); const { Pool } = require("pg"); const connection = new Pool({ - connectionString: process.env.DB + connectionString: process.env.DB, + statement_timeout: 10000 }); exports.getGuild = async (query) => {