aboutsummaryrefslogtreecommitdiffstats
path: root/src/chameleon/route.clj
diff options
context:
space:
mode:
authorAdrian Batos-Parac <adrian.batos-parac@amdocs.com>2018-04-30 16:15:45 -0400
committerAdrian Batos-Parac <adrian.batos-parac@amdocs.com>2018-04-30 16:15:45 -0400
commit36b5671af2c3eec5ca81663382c4ca2898f79e55 (patch)
tree07d58851dc227322a9842adec0bf6ea1380d43be /src/chameleon/route.clj
parent8e52114cf9289dd85c8838bf0eb8c24f5e2c7f99 (diff)
Fix provenance capabilities
Fixes the issue where provenance was not properly being propagated to the Gallifrey server. Change-Id: Icc5f4fd3499a04aa710511879fc2d827d2bcc618 Issue-ID: AAI-797 Signed-off-by: abatos <adrian.batos-parac@amdocs.com>
Diffstat (limited to 'src/chameleon/route.clj')
-rw-r--r--src/chameleon/route.clj10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/chameleon/route.clj b/src/chameleon/route.clj
index 30a2199..e8f3a3c 100644
--- a/src/chameleon/route.clj
+++ b/src/chameleon/route.clj
@@ -59,14 +59,12 @@
(defn assert-gallifrey [host actor type payload]
"Propagates an assertion to Gallifrey based off of an event payload coming in from the event service."
(let [{:keys [meta body]} payload
- {:keys [key operation time]} meta
- time-map (filter val time)]
- (println time-map)
+ {:keys [key operation time]} meta]
(println operation " " type " with key " key)
(interpret-response key (case operation
"CREATE"
- (assert-create host actor type key body time-map)
+ (assert-create host actor type key body time)
"UPDATE"
- (assert-update host actor type key body time-map)
+ (assert-update host actor type key body time)
"DELETE"
- (assert-delete host actor type key time-map)))))
+ (assert-delete host actor type key time)))))