Skip to content

Commit

Permalink
Fixes sns publish
Browse files Browse the repository at this point in the history
  • Loading branch information
dehli committed Jan 24, 2020
1 parent 36215e8 commit 33fa3d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<groupId>dehli</groupId>
<artifactId>serverless</artifactId>
<version>0.1.21</version>
<version>0.1.22</version>
<name>serverless</name>

<dependencies>
Expand Down
4 changes: 2 additions & 2 deletions src/serverless/aws/sns.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
:params {:TopicArn topic-arn}})))

;; Method helpers
(defn- base-xform [{:keys [message]}]
(defn- base-xform [message]
{:message (clj->json message)})

;; Public methods
(def publish
(partial js-call-v2 base-xform))
(partial js-call-v2 "publish" base-xform))

0 comments on commit 33fa3d5

Please sign in to comment.