Browse Source

bug fixed for my repository (#933)

master
Lunny Xiao GitHub 8 years ago
parent
commit
4cfde304df
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      models/org.go

+ 6
- 2
models/org.go View File

@@ -657,9 +657,13 @@ func (env *accessibleReposEnv) Repos(page, pageSize int) ([]*Repository, error)
}

repos := make([]*Repository, 0, len(repoIDs))

if len(repoIDs) <= 0 {
return repos, nil
}

return repos, x.
Select("`repository`.*").
Where(builder.In("`repository`.id", repoIDs)).
In("`repository`.id", repoIDs).
Find(&repos)
}



Loading…
Cancel
Save