all: unwrap database.OrganizationsStore interface (#7696)

This commit is contained in:
Joe Chen
2024-03-19 19:33:43 -04:00
committed by GitHub
parent b89f20e02d
commit dd49412edd
9 changed files with 115 additions and 124 deletions

View File

@@ -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,