From 06daac3f35efcbe5114b226298f3fc6073c49bac Mon Sep 17 00:00:00 2001 From: gt2345 Date: Thu, 29 Aug 2024 09:45:40 -0500 Subject: [PATCH] fix comments --- master/internal/webhooks/postgres_webhook.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/master/internal/webhooks/postgres_webhook.go b/master/internal/webhooks/postgres_webhook.go index 36f1913f55b..abad0ad296d 100644 --- a/master/internal/webhooks/postgres_webhook.go +++ b/master/internal/webhooks/postgres_webhook.go @@ -286,7 +286,8 @@ func GetWebhook(ctx context.Context, webhookID int) (*Webhook, error) { return &webhook, nil } -// getWebhooks returns Webhooks from the DB whose scopes are in workspaceIDs. +// getWebhooks returns all global webhooks from the DB +// and all webhooks whose scopes are in workspaceIDs. // workspaceIDs being nil gets only the globally scoped webhooks. func getWebhooks(ctx context.Context, workspaceIDs *[]int32) (Webhooks, error) { webhooks := Webhooks{}