1
0

chore(webhooks): remove WebhookEvent interface

This commit is contained in:
kolaente
2023-09-14 12:22:57 +02:00
parent 96ccf6b923
commit 4253d14367
2 changed files with 1 additions and 70 deletions

View File

@ -49,11 +49,6 @@ func (w *Webhook) TableName() string {
return "webhooks"
}
type WebhookEvent interface {
events.Event
ProjectID() int64
}
var availableWebhookEvents map[string]bool
var availableWebhookEventsLock *sync.Mutex
@ -62,7 +57,7 @@ func init() {
availableWebhookEventsLock = &sync.Mutex{}
}
func RegisterEventForWebhook(event WebhookEvent) {
func RegisterEventForWebhook(event events.Event) {
availableWebhookEventsLock.Lock()
defer availableWebhookEventsLock.Unlock()