mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-15 00:23:22 +00:00
remove size limit in toListPosgres to accomodate users with access to many repositories
This commit is contained in:
committed by
Marius Grigoriu
parent
524fba6253
commit
be0ee06019
@@ -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 {
|
||||||
|
Reference in New Issue
Block a user