Skip to content

Commit 90274a4

Browse files
committed
Fix build
1 parent 7678260 commit 90274a4

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

models/org.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -546,8 +546,8 @@ func (opts FindOrgOptions) toConds() builder.Cond {
546546
}
547547

548548
// FindOrgs returns a list of organizations according given conditions
549-
func FindOrgs(opts FindOrgOptions) ([]*User, error) {
550-
orgs := make([]*User, 0, 10)
549+
func FindOrgs(opts FindOrgOptions) ([]*Organization, error) {
550+
orgs := make([]*Organization, 0, 10)
551551
sess := db.GetEngine(db.DefaultContext).
552552
Where(opts.toConds()).
553553
Asc("`user`.name")

routers/api/v1/org/org.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ func listUserOrgs(ctx *context.APIContext, u *models.User) {
3939
return
4040
}
4141

42-
maxResults := len(orgs)
4342
orgs, _ = util.PaginateSlice(orgs, listOptions.Page, listOptions.PageSize).([]*models.Organization)
4443

4544
apiOrgs := make([]*api.Organization, len(orgs))

0 commit comments

Comments
 (0)