Skip to content

Commit

Permalink
#129: fixed a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
slr71 committed Nov 1, 2018
1 parent 409561b commit f4c7c51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/apps/service/apps.clj
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@
(transaction
(let [updates (jp/get-job-status-updates external-id)]
(when (seq updates)
(let [job-id (:job_id (jp/get-job-steps-by-external-id external-id))
(let [job-id (:job_id (first (jp/get-job-steps-by-external-id external-id)))
job-step (jobs/lock-job-step job-id external-id)
job (jobs/lock-job job-id)
batch (when-let [parent-id (:parent_id job)] (jp/get-job-by-id parent-id))
Expand Down

0 comments on commit f4c7c51

Please sign in to comment.