mirror of
https://github.com/gogs/gogs.git
synced 2026-07-15 15:23:11 +02:00
all: unwrap database.OrganizationsStore interface (#7696)
This commit is contained in:
@@ -43,7 +43,7 @@ func CreateOrgForUser(c *context.APIContext, apiForm api.CreateOrgOption, user *
|
||||
}
|
||||
|
||||
func listUserOrgs(c *context.APIContext, u *database.User, all bool) {
|
||||
orgs, err := database.Orgs.List(
|
||||
orgs, err := database.Handle.Organizations().List(
|
||||
c.Req.Context(),
|
||||
database.ListOrgsOptions{
|
||||
MemberID: u.ID,
|
||||
|
||||
Reference in New Issue
Block a user