mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-20 08:51:01 +00:00
remove size limit in toListPosgres to accomodate users with access to many repositories
This commit is contained in:
parent
524fba6253
commit
be0ee06019
1 changed files with 0 additions and 4 deletions
|
@ -57,10 +57,6 @@ func toList(listof []*model.RepoLite) (string, []interface{}) {
|
||||||
// to a sql IN statement compatible with postgres.
|
// to a sql IN statement compatible with postgres.
|
||||||
func toListPosgres(listof []*model.RepoLite) (string, []interface{}) {
|
func toListPosgres(listof []*model.RepoLite) (string, []interface{}) {
|
||||||
var size = len(listof)
|
var size = len(listof)
|
||||||
if size > 999 {
|
|
||||||
size = 999
|
|
||||||
listof = listof[:999]
|
|
||||||
}
|
|
||||||
var qs = make([]string, size, size)
|
var qs = make([]string, size, size)
|
||||||
var in = make([]interface{}, size, size)
|
var in = make([]interface{}, size, size)
|
||||||
for i, repo := range listof {
|
for i, repo := range listof {
|
||||||
|
|
Loading…
Reference in a new issue