1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-23 07:09:44 +02:00

fix: Fix variable name

This commit is contained in:
Maksim Eltyshev 2024-09-04 15:28:09 +02:00
parent 336addbae4
commit b6316b3d1c

View file

@ -1,5 +1,5 @@
const buildAndSendMessage = async (user, card, send) => { const buildAndSendMessage = async (card, actorUser, send) => {
await send(`*${card.name}* was deleted by ${user.name}`); await send(`*${card.name}* was deleted by ${actorUser.name}`);
}; };
module.exports = { module.exports = {
@ -56,10 +56,11 @@ module.exports = {
}); });
if (sails.config.custom.slackBotToken) { if (sails.config.custom.slackBotToken) {
buildAndSendMessage(inputs.user, card, sails.helpers.utils.sendSlackMessage); buildAndSendMessage(card, inputs.actorUser, sails.helpers.utils.sendSlackMessage);
} }
if (sails.config.custom.googleChatWebhookUrl) { if (sails.config.custom.googleChatWebhookUrl) {
buildAndSendMessage(inputs.user, card, sails.helpers.utils.sendGoogleChatMessage); buildAndSendMessage(card, inputs.actorUser, sails.helpers.utils.sendGoogleChatMessage);
} }
} }