mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-01-17 17:45:03 +02:00
remove size limit in toList
This commit is contained in:
parent
be0ee06019
commit
0ace6aefd6
@ -40,10 +40,6 @@ func rebind(query string) string {
|
|||||||
// to a sql IN statment.
|
// to a sql IN statment.
|
||||||
func toList(listof []*model.RepoLite) (string, []interface{}) {
|
func toList(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…
x
Reference in New Issue
Block a user