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:
Gabriel Adrian Samfira 2025-08-21 18:57:42 +00:00
parent 8bda81d6cc
commit 4341b4869c
2 changed files with 12 additions and 12 deletions

View file

@ -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