Przeglądaj źródła

update page.extended.slack when comment notification fires

sou 7 lat temu
rodzic
commit
17433571c4
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      lib/routes/comment.js

+ 2 - 0
lib/routes/comment.js

@@ -84,6 +84,8 @@ module.exports = function(crowi, app) {
         const path = page.path;
         const channels = slackNotificationForm.slackChannels;
 
+        page.updateSlackChannel(channels).then(function() {}).catch(function() {});
+
         channels.split(',').map(function(chan) {
           crowi.slack.postComment(createdComment, user, chan, path);
         });