getActiveWebhooksByOrgID returns all active webhooks for an organization.
(e Engine, orgID int64)
| 352 | |
| 353 | // getActiveWebhooksByOrgID returns all active webhooks for an organization. |
| 354 | func getActiveWebhooksByOrgID(e Engine, orgID int64) ([]*Webhook, error) { |
| 355 | ws := make([]*Webhook, 0, 3) |
| 356 | return ws, e.Where("org_id=?", orgID).And("is_active=?", true).Find(&ws) |
| 357 | } |
| 358 | |
| 359 | // ___ ___ __ ___________ __ |
| 360 | // / | \ ____ ____ | | _\__ ___/____ _____| | __ |
no test coverage detected