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:
parent
336addbae4
commit
b6316b3d1c
1 changed files with 5 additions and 4 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue