0
0
Fork 0

Add coverage for Webhook validations (#33026)

This commit is contained in:
Matt Jankowski 2024-11-25 03:19:16 -05:00 committed by GitHub
parent ab9c62e8c7
commit 74df47ad9c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 108 additions and 10 deletions

View file

@ -53,7 +53,7 @@ class Webhook < ApplicationRecord
end
def required_permissions
events.map { |event| Webhook.permission_for_event(event) }
events.map { |event| Webhook.permission_for_event(event) }.uniq
end
def self.permission_for_event(event)