Skip to content

Commit

Permalink
call compact method on paylaod hash, not contact, on slack_service.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
gizotti committed Dec 9, 2016
1 parent bb3314c commit dafe037
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/notification_services/slack_service.rb
Expand Up @@ -60,7 +60,7 @@ def post_payload(problem)
]
}
]
}.contact.to_json # compact to remove empty channel in case it wasn't selected by user
}.compact.to_json # compact to remove empty channel in case it wasn't selected by user
end

def create_notification(problem)
Expand Down

0 comments on commit dafe037

Please sign in to comment.