Created
December 16, 2015 13:10
-
-
Save spacepluk/70a0e9fbd152073828ff to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defmethod action->events "new-session" | |
[action state] | |
(let [state (action->events {:action "stop-session"} state) | |
state (assoc state :session (session state (:params action))) | |
state (add-events state [(session-start state)])] | |
state)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment