mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-01-29 18:04:15 +02:00
fixed placeholder issue in listof query
This commit is contained in:
parent
6b69913d82
commit
84a0ef1f89
@ -47,7 +47,7 @@ func toList(listof []*model.RepoLite) (string, []interface{}) {
|
||||
var qs = make([]string, size, size)
|
||||
var in = make([]interface{}, size, size)
|
||||
for i, repo := range listof {
|
||||
qs[i] = "$" + strconv.Itoa(i+1)
|
||||
qs[i] = "?"
|
||||
in[i] = repo.FullName
|
||||
}
|
||||
return strings.Join(qs, ","), in
|
||||
|
Loading…
x
Reference in New Issue
Block a user