Bugfix in footprint update

This commit is contained in:
2024-09-05 14:58:08 +02:00
parent 5e65e21f0b
commit 7c33dcf630
2 changed files with 6 additions and 5 deletions

View File

@@ -487,10 +487,8 @@ func (r *JobRepository) UpdateDuration() error {
stmnt := sq.Update("job").
Set("duration", sq.Expr("? - job.start_time", time.Now().Unix())).
Where("job_state = 'running'")
sql, _, err := stmnt.ToSql()
log.Infof("Duration Update query %s", sql)
_, err = stmnt.RunWith(r.stmtCache).Exec()
_, err := stmnt.RunWith(r.stmtCache).Exec()
if err != nil {
return err
}