Merge pull request #91 from NeilHanlon/main

fix bad sql in SetBuildRootPackages
This commit is contained in:
resf-prow[bot] 2023-01-20 21:24:24 +00:00 committed by GitHub
commit 3e345060bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,6 +32,7 @@ package serverpsql
import ( import (
"fmt" "fmt"
"github.com/jmoiron/sqlx/types" "github.com/jmoiron/sqlx/types"
"github.com/lib/pq" "github.com/lib/pq"
"google.golang.org/protobuf/encoding/protojson" "google.golang.org/protobuf/encoding/protojson"
@ -350,7 +351,7 @@ func (a *Access) SetBuildRootPackages(projectId string, srpmPackages pq.StringAr
_, err := a.query.Exec( _, err := a.query.Exec(
` `
update projects set srpm_stage_packages = $2, build_stage_packages = $3 update projects set srpm_stage_packages = $2, build_stage_packages = $3
where project_id = $1 where id = $1
`, `,
projectId, projectId,
srpmPackages, srpmPackages,