mirror of
https://github.com/plankanban/planka.git
synced 2025-12-18 01:11:13 +03:00
chore: Cleanup
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
const services = require('../../services/slack');
|
||||
|
||||
const Errors = {
|
||||
NOT_ENOUGH_RIGHTS: {
|
||||
notEnoughRights: 'Not enough rights',
|
||||
@@ -57,11 +55,6 @@ module.exports = {
|
||||
throw Errors.CARD_NOT_FOUND;
|
||||
}
|
||||
|
||||
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); });
|
||||
|
||||
return {
|
||||
item: card,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user