mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-27 04:11:03 +00:00
fixed placeholder issue in listof query
This commit is contained in:
parent
6b69913d82
commit
84a0ef1f89
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue