Add dismiss options

This commit is contained in:
estevez-dev 2020-05-25 13:45:40 +03:00
parent 550aa45643
commit 29089bc43f

View File

@ -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])
}
}