webhook: add admin-hooks tests

This commit is contained in:
oliverpool 2024-04-09 11:59:10 +02:00
parent e0b5f2d59b
commit 9a94019db4
5 changed files with 40 additions and 20 deletions

View file

@ -243,7 +243,7 @@ func PrepareWebhooks(ctx context.Context, source EventSource, event webhook_modu
}
// Add any admin-defined system webhooks
systemHooks, err := webhook_model.GetSystemWebhooks(ctx, optional.Some(true))
systemHooks, err := webhook_model.GetSystemWebhooks(ctx, true)
if err != nil {
return fmt.Errorf("GetSystemWebhooks: %w", err)
}