From 55ea7f13fd020e33e626fcdee3fbd1a6d3a96be6 Mon Sep 17 00:00:00 2001 From: ansuz Date: Thu, 22 Aug 2019 11:49:02 +0200 Subject: [PATCH] fix invalid conditional which would block task scheduling --- historyKeeper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/historyKeeper.js b/historyKeeper.js index 85e5f1dfb..aced95103 100644 --- a/historyKeeper.js +++ b/historyKeeper.js @@ -733,7 +733,7 @@ module.exports.create = function (cfg) { }); // write tasks - if(tasks && metadata.expire && metadata.expire === 'number') { + if(tasks && metadata.expire && typeof(metadata.expire) === 'number') { // the fun part... // the user has said they want this pad to expire at some point tasks.write(metadata.expire, "EXPIRE", [ channelName ], function (err) {