MCPcopy Create free account
hub / github.com/gogs/gogs / getTeamsByOrgID

Function getTeamsByOrgID

internal/database/org_team.go:354–357  ·  view source on GitHub ↗
(e Engine, orgID int64)

Source from the content-addressed store, hash-verified

352}
353
354func getTeamsByOrgID(e Engine, orgID int64) ([]*Team, error) {
355 teams := make([]*Team, 0, 3)
356 return teams, e.Where("org_id = ?", orgID).Find(&teams)
357}
358
359// GetTeamsByOrgID returns all teams belong to given organization.
360func GetTeamsByOrgID(orgID int64) ([]*Team, error) {

Callers 2

getTeamsMethod · 0.85
GetTeamsByOrgIDFunction · 0.85

Calls 2

WhereMethod · 0.80
FindMethod · 0.65

Tested by

no test coverage detected