Skip to content
Snippets Groups Projects
Verified Commit 5e6046be authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

fix: wrong db update construct

parent d38a8929
Branches
Tags v1.13.2
No related merge requests found
......@@ -114,7 +114,7 @@ func (s *DBSaver) Start() error {
permJob.Logs = nil
var existingJob JobPersistence
result := tx.Unscoped().Where("id = ? AND deleted_at IS NOT NULL", permJob.GetID()).First(&existingJob)
result := tx.Unscoped().Where("id = ?", permJob.GetID()).First(&existingJob)
if result.Error != nil {
if errors.Is(result.Error, gorm.ErrRecordNotFound) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment