Skip to content

Commit

Permalink
fix nil pointer on resume create image
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Holloway <[email protected]>
  • Loading branch information
loadtheaccumulator authored and lzap committed Jan 23, 2025
1 parent 6c365f1 commit 89291e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/services/images.go
Original file line number Diff line number Diff line change
Expand Up @@ -1415,8 +1415,8 @@ func ResumeCreateImageJobHandler(ctx context.Context, job *jobs.Job) {
}

func ResumeCreateImageFailHandler(ctx context.Context, job *jobs.Job) {
args := job.Args.(*ProcessImageJob)
db.DBx(ctx).Model(&models.Image{}).Where("ID = ?", args.ImageID).Update("Status", models.ImageStatusInterrupted)
args := job.Args.(*ResumeCreateImageJob)
db.DBx(ctx).Model(&models.Image{}).Where("ID = ?", args.Image.ID).Update("Status", models.ImageStatusError)
}

func init() {
Expand Down

0 comments on commit 89291e5

Please sign in to comment.