chore: Cleanup

This commit is contained in:
Maksim Eltyshev
2024-04-08 01:47:24 +02:00
parent bcacfa8fe2
commit b46fb43e6f
6 changed files with 0 additions and 95 deletions

View File

@@ -1,5 +1,3 @@
const services = require('../../services/slack');
const Errors = {
NOT_ENOUGH_RIGHTS: {
notEnoughRights: 'Not enough rights',
@@ -66,12 +64,6 @@ module.exports = {
request: this.req,
});
const cardUrl = services.buildCardUrl(card);
const messageText = '*' + currentUser.name + '* commented on ' + cardUrl + ':\n>' + inputs.text;
services.sendSlackMessage(messageText)
.then(() => { console.log('Slack message sent successfully.'); })
.catch((error) => { console.error('Failed to send Slack message:', error.message); });
return {
item: action,
};