aboutsummaryrefslogtreecommitdiff
path: root/src/clj/queue_api/routes/services.clj
diff options
context:
space:
mode:
authorGabriel A. Giovanini <mail@gabrielgio.me>2018-02-18 21:26:07 -0300
committerGabriel A. Giovanini <mail@gabrielgio.me>2018-02-18 21:26:07 -0300
commitff69f08e64ad890255fb0f9e957be4e00b1c404f (patch)
treea2de43cc577752b6ca43bb8be0b017469dac9d89 /src/clj/queue_api/routes/services.clj
parent9dd6aeb32d21ed8673bdd490341302fd7f37d2fc (diff)
downloadqueue-api-ff69f08e64ad890255fb0f9e957be4e00b1c404f.tar.gz
queue-api-ff69f08e64ad890255fb0f9e957be4e00b1c404f.tar.bz2
queue-api-ff69f08e64ad890255fb0f9e957be4e00b1c404f.zip
Improves code clarity
Diffstat (limited to 'src/clj/queue_api/routes/services.clj')
-rw-r--r--src/clj/queue_api/routes/services.clj6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/clj/queue_api/routes/services.clj b/src/clj/queue_api/routes/services.clj
index e8f03f9..694f0d8 100644
--- a/src/clj/queue_api/routes/services.clj
+++ b/src/clj/queue_api/routes/services.clj
@@ -44,13 +44,13 @@
(let [j (db/dequeue-job agent_id)]
(if (nil? j)
(bad-request {:message "Agent does not exist"})
- (ok j)))))
+ (ok {:job_request j})))))
(context "/queue" []
:tags ["queue"]
(GET "/" []
- :return {:completed [String]
- :processing[String]
+ :return {:completed [String]
+ :processing [String]
:unassigned [String]}
:summary "Get a summary of the queue"
(ok (db/sum-queue)))))