Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
gt2345 committed Aug 29, 2024
1 parent 9b39c26 commit 06daac3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion master/internal/webhooks/postgres_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
Expand Down

0 comments on commit 06daac3

Please sign in to comment.