Skip to content

Commit

Permalink
fix: mistake in juxt after moving around
Browse files Browse the repository at this point in the history
  • Loading branch information
TimoKramer committed Mar 24, 2022
1 parent 0b04732 commit a83d115
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/souffleuse/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@

(defn trigger-slack-announcement [body]
(if slack-hook-url
(let [[release repository] (juxt body :release :repository)
(let [[release repository] ((juxt :release :repository) body)
message (format "Version %s of %s was just released. Find the changelog or get in contact with us <%s|over on GitHub.>"
(:tag_name release)
(:name repository)
Expand All @@ -82,7 +82,7 @@
body)

(defn trigger-twitter-announcement [body]
(let [[release repository] (juxt body :release :repository)
(let [[release repository] ((juxt :release :repository) body)
message (format "Version %s of %s was just released. Take a look at the changelog over on GitHub: %s"
(:tag_name release)
(:name repository)
Expand Down Expand Up @@ -140,6 +140,7 @@

(comment
(def payload (json/parse-string (slurp "test/payload.sample.json") true))
((juxt :release :repository) payload)

(srv/server-stop! @server)

Expand Down

0 comments on commit a83d115

Please sign in to comment.