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

updated to use currentUser.name for messages

This commit is contained in:
Brad Bahls 2023-12-28 09:03:41 -07:00
parent a9c200cc3b
commit 86d21d6abd
No known key found for this signature in database
GPG key ID: 236D25760FA8AF9B
4 changed files with 4 additions and 4 deletions

View file

@ -56,7 +56,7 @@ module.exports = {
throw Errors.CARD_NOT_FOUND;
}
const messageText = '*' + card.name + '* was deleted by ' + currentUser.username;
const messageText = '*' + card.name + '* was deleted by ' + currentUser.name;
services.sendSlackMessage(messageText)
.then(() => { console.log('Slack message sent successfully.'); })
.catch((error) => { console.error('Failed to send Slack message:', error.message); });