Fix erroneous calls to Job related functions
Some functions were left behind when we added WorkflowJobID. Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
This commit is contained in:
parent
8bda81d6cc
commit
4341b4869c
2 changed files with 12 additions and 12 deletions
|
|
@ -248,7 +248,7 @@ func (s *sqlDatabase) CreateOrUpdateJob(ctx context.Context, job params.Job) (pa
|
|||
var err error
|
||||
|
||||
searchField := "workflow_job_id = ?"
|
||||
var searchVal any = job.ID
|
||||
var searchVal any = job.WorkflowJobID
|
||||
if job.ScaleSetJobID != "" {
|
||||
searchField = "scale_set_job_id = ?"
|
||||
searchVal = job.ScaleSetJobID
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue