-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
I must be wrong here because someone would have caught this before. So, I would appreciate some clarification in my logic.
//Lawrence
guestbook.routes.home calls "db/save-message!" but [guestbook.db.core :as db] does not contain the function "save-message!".
(defn save-message! [{:keys [params]}](if-let [errors %28validate-message params%29]
%28-> %28response/found)
(assoc :flash (assoc params :errors errors)))
(do
(db/save-message!
(assoc params :timestamp (java.util.Date.)))
(response/found "/"))))
Metadata
Metadata
Assignees
Labels
No labels