2
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
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)