Skip to content

Commit c097b23

Browse files
Pass new tweets to update-graph in chronological order.
1 parent 72aa403 commit c097b23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/twitterbuzz/src/twitterbuzz/core.cljs

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
(-> old-state
102102
(assoc :max-id max-id)
103103
(update-in [:tweet-count] #(+ % (count tweets)))
104-
(assoc :graph (update-graph (:graph old-state) tweets))))
104+
(assoc :graph (update-graph (:graph old-state) (reverse tweets)))))
105105

106106
(defn my-callback [json]
107107
(let [result-map (js->clj json :keywordize-keys true)

0 commit comments

Comments
 (0)