From 69b24b8998a61b0fba023962a780b46dd60ea0e1 Mon Sep 17 00:00:00 2001 From: Josh Creek Date: Mon, 26 Oct 2020 17:26:08 +0000 Subject: [PATCH] feat(*): Set delete channel timeout to use minutes, not seconds for production --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index b719285..3551618 100644 --- a/index.js +++ b/index.js @@ -147,7 +147,7 @@ function makeTempChannel(message) { .catch(logger.error); // Delete the channel after 20 seconds - setTimeout(function(){ deleteChannel(message, createdChannelId); }, (config.channeldeletetimeinminutes * 1000) ); + setTimeout(function(){ deleteChannel(message, createdChannelId); }, (config.channeldeletetimeinminutes * 1000 * 60) ); } function deleteChannel(message, channelId) {