From 29089bc43f7809fd0ece7c48cc7bc5c79eba4594 Mon Sep 17 00:00:00 2001 From: estevez-dev Date: Mon, 25 May 2020 13:45:40 +0300 Subject: [PATCH] Add dismiss options --- functions/worker.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/worker.js b/functions/worker.js index d0efc19..3e8c3f9 100644 --- a/functions/worker.js +++ b/functions/worker.js @@ -60,8 +60,8 @@ module.exports = { if (req.body.data.image) { payload.data.imageUrl = req.body.data.image; } - for (const key of ['color', 'channelId', 'image', 'tag']) { - if (req.body.data[key]) { + for (const key of ['color', 'channelId', 'image', 'tag', 'dismiss', 'autoDismiss']) { + if (req.body.data[key] !== null) { payload.data[key] = String(req.body.data[key]) } }