From ff69f08e64ad890255fb0f9e957be4e00b1c404f Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Sun, 18 Feb 2018 21:26:07 -0300 Subject: Improves code clarity --- src/clj/queue_api/routes/services.clj | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/clj/queue_api/routes') 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))))) -- cgit v1.2.3