|
@@ -206,7 +206,7 @@ module.exports = function(crowi) {
|
|
|
|
|
|
|
|
const slackPost = (messageObj) => {
|
|
const slackPost = (messageObj) => {
|
|
|
// when incoming Webhooks is prioritized
|
|
// when incoming Webhooks is prioritized
|
|
|
- if (Config.isIncomingWebhookPrioritized(config)) {
|
|
|
|
|
|
|
+ if (configManager.getConfig('notification', 'slack:isIncomingWebhookPrioritized')) {
|
|
|
if (configManager.getConfig('notification', 'slack:incomingWebhookUrl')) {
|
|
if (configManager.getConfig('notification', 'slack:incomingWebhookUrl')) {
|
|
|
debug('posting message with IncomingWebhook');
|
|
debug('posting message with IncomingWebhook');
|
|
|
return postWithIwh(messageObj);
|
|
return postWithIwh(messageObj);
|