From aec6232cc610e81c5df50f729c61342cd2b9be8e Mon Sep 17 00:00:00 2001 From: Jay Date: Mon, 16 Jul 2018 10:47:43 +0800 Subject: [PATCH] fix db release --- libs/twitch-bot/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/twitch-bot/index.js b/libs/twitch-bot/index.js index 7a446fe..bef0f3d 100644 --- a/libs/twitch-bot/index.js +++ b/libs/twitch-bot/index.js @@ -63,7 +63,7 @@ class WS { }) // release pool connection - await db.replace() + await db.release() if (result !== null && result.rowCount > 0) { for (let row of result.rows) {