Skip to content

Commit 9d9f4b1

Browse files
committed
feat: import reaction_added events
1 parent 7d936d5 commit 9d9f4b1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/clojurians_log/db/import.clj

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,11 @@
9797
(defmethod event->tx ["reaction_added" nil] [{:keys [user item reaction item_user event_ts ts]}]
9898
;; Placeholder just to show that we're getting some data.
9999
;; TODO: return Datomic transaction data to create a reaction entity
100-
(println "+" reaction)
101-
nil)
100+
{:reaction/type "reaction_added"
101+
:reaction/emoji [:emoji/shortcode reaction]
102+
:reaction/ts ts
103+
:reaction/user [:user/slack-id user]
104+
:reaction/message [:message/key (message-key item)]})
102105

103106
(defmethod event->tx ["reaction_removed" nil] [{:keys [user item reaction item_user event_ts ts]}]
104107
;; Placeholder just to show that we're getting some data.

0 commit comments

Comments
 (0)