1
0

feat(webhooks): add event listener to send webhook payload

This commit is contained in:
kolaente
2023-09-13 21:36:00 +02:00
parent e5b8d8bd2d
commit c5de41f183
2 changed files with 51 additions and 4 deletions

View File

@ -66,6 +66,9 @@ func RegisterEventForWebhook(event WebhookEvent) {
defer availableWebhookEventsLock.Unlock()
availableWebhookEvents[event.Name()] = true
events.RegisterListener(event.Name(), &WebhookListener{
EventName: event.Name(),
})
}
func (w *Webhook) Create(s *xorm.Session, a web.Auth) (err error) {