From 51eeb06fb9d06a499c790a6c5526d74e96472469 Mon Sep 17 00:00:00 2001 From: Snazzah Date: Sat, 20 Jun 2020 20:48:13 -0500 Subject: [PATCH] fix(webserver): Fix custom value events --- src/webserver/events/customField/item.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/webserver/events/customField/item.js b/src/webserver/events/customField/item.js index 5565babb..679e7d5c 100644 --- a/src/webserver/events/customField/item.js +++ b/src/webserver/events/customField/item.js @@ -29,7 +29,7 @@ exports.exec = async data => { const removed = !data.oldData.value; switch (data.customField.type) { case 'checkbox': - resultData.title = _(`webhooks.customfielditem_checkbox_${!removed}`, { + resultData.title = _(`webhooks.customfielditem_checkbox_${removed}`, { member: data.invoker.webhookSafeName, card: data.util.cutoffText(data.card.name, 50), customField: data.util.cutoffText(data.customField.name, 50) @@ -93,7 +93,7 @@ exports.exec = async data => { }); break; case 'list': - resultData.title = _(`webhooks.customfielditem_${!removed ? 'update' : 'remove'}`, { + resultData.title = _(`webhooks.customfielditem_${data.oldData.idValue ? 'update' : 'remove'}`, { member: data.invoker.webhookSafeName, card: data.util.cutoffText(data.card.name, 50), customField: data.util.cutoffText(data.customField.name, 50)