Change webhook configuration to subscription

Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
Sacha Al Himdani
2026-02-13 16:54:46 +01:00
parent 6de906d0a9
commit 60538ef2bb
24 changed files with 915 additions and 885 deletions

View File

@@ -33,10 +33,10 @@ func InsertEvent(
eventType coredata.WebhookEventType,
data any,
) error {
var configs coredata.WebhookConfigurations
var configs coredata.WebhookSubscriptions
exists, err := configs.ExistsByOrganizationIDAndEventType(ctx, conn, scope, organizationID, eventType)
if err != nil {
return fmt.Errorf("cannot check webhook configurations: %w", err)
return fmt.Errorf("cannot check webhook subscriptions: %w", err)
}
if !exists {