aboutsummaryrefslogtreecommitdiff
path: root/src/clj/queue_api/routes/services.clj
diff options
context:
space:
mode:
authorGabriel A. Giovanini <mail@gabrielgio.me>2018-02-18 16:41:25 -0300
committerGabriel A. Giovanini <mail@gabrielgio.me>2018-02-18 16:41:25 -0300
commit48bd546122842012a65572fa436fe58cfd965ca7 (patch)
treed5e7f8accdd635ebc220cd6010ccb00280a0e145 /src/clj/queue_api/routes/services.clj
parent7f492fb132b44917f2293b8435924de4524d3053 (diff)
downloadqueue-api-48bd546122842012a65572fa436fe58cfd965ca7.tar.gz
queue-api-48bd546122842012a65572fa436fe58cfd965ca7.tar.bz2
queue-api-48bd546122842012a65572fa436fe58cfd965ca7.zip
Adds more features and more tests
Diffstat (limited to 'src/clj/queue_api/routes/services.clj')
-rw-r--r--src/clj/queue_api/routes/services.clj4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/clj/queue_api/routes/services.clj b/src/clj/queue_api/routes/services.clj
index 7e9fc98..d432517 100644
--- a/src/clj/queue_api/routes/services.clj
+++ b/src/clj/queue_api/routes/services.clj
@@ -26,7 +26,7 @@
:return [{:type String :jobs s/Int}]
:body-params [agent_id :- String]
:summary "Get summary of an agent"
- (ok (db/get-agent agent_id))))
+ (ok (db/sum-agent agent_id))))
(context "/job" []
:tags ["job"]
@@ -41,7 +41,7 @@
:return {:job_request {:job_id String :agent_id String}}
:body-params [agent_id :- String]
:summary "Request a job to a given agent"
- (ok (db/request-job agent_id))))
+ (ok (db/dequeue-job agent_id))))
(context "/queue" []
:tags ["queue"]