1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-19 13:19: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) => {
await send(`*${card.name}* was deleted by ${user.name}`);
const buildAndSendMessage = async (card, actorUser, send) => {
await send(`*${card.name}* was deleted by ${actorUser.name}`);
};
module.exports = {
@ -56,10 +56,11 @@ module.exports = {
});
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) {
buildAndSendMessage(inputs.user, card, sails.helpers.utils.sendGoogleChatMessage);
buildAndSendMessage(card, inputs.actorUser, sails.helpers.utils.sendGoogleChatMessage);
}
}