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

Function getOrgUsersByOrgID

internal/database/org.go:304–312  ·  view source on GitHub ↗
(e Engine, orgID int64, limit int)

Source from the content-addressed store, hash-verified

302}
303
304func getOrgUsersByOrgID(e Engine, orgID int64, limit int) ([]*OrgUser, error) {
305 orgUsers := make([]*OrgUser, 0, 10)
306
307 sess := e.Where("org_id=?", orgID)
308 if limit > 0 {
309 sess = sess.Limit(limit)
310 }
311 return orgUsers, sess.Find(&orgUsers)
312}
313
314// GetOrgUsersByOrgID returns all organization-user relations by organization ID.
315func GetOrgUsersByOrgID(orgID int64, limit int) ([]*OrgUser, error) {

Callers 2

GetOrgUsersByOrgIDFunction · 0.85
updateIssueMentionsFunction · 0.85

Calls 2

WhereMethod · 0.80
FindMethod · 0.65

Tested by

no test coverage detected