Skip to content

Commit

Permalink
condition should be on fetched task.
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Ortel <jortel@redhat.com>
  • Loading branch information
jortel committed Jun 6, 2024
1 parent 5a9f9a7 commit 98c77b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion task/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ func (m *Manager) Update(db *gorm.DB, requested *Task) (err error) {
if err != nil {
return
}
switch requested.State {
switch task.State {
case Created,
Ready:
task.UpdateUser = requested.UpdateUser
Expand Down

0 comments on commit 98c77b2

Please sign in to comment.