func editJob(jobstore entities.JobStore, id int) { job, _ := jobstore.GetJob(id) job.Status = "Done" jobstore.Replace(id, job) }