fix invalid conditional which would block task scheduling

pull/1/head
ansuz 5 years ago
parent 8af7308da4
commit 55ea7f13fd

@ -733,7 +733,7 @@ module.exports.create = function (cfg) {
}); });
// write tasks // write tasks
if(tasks && metadata.expire && metadata.expire === 'number') { if(tasks && metadata.expire && typeof(metadata.expire) === 'number') {
// the fun part... // the fun part...
// the user has said they want this pad to expire at some point // the user has said they want this pad to expire at some point
tasks.write(metadata.expire, "EXPIRE", [ channelName ], function (err) { tasks.write(metadata.expire, "EXPIRE", [ channelName ], function (err) {

Loading…
Cancel
Save