Advertisement
Guest User

Untitled

a guest
May 27th, 2015
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. (defn save!
  2. "Persists an account"
  3. [account]
  4. (-> (common/db)
  5. (mc/save-and-return "accounts" account)))
  6.  
  7. (defn find-by-id
  8. "Find account by given query"
  9. [id]
  10. (-> (common/db)
  11. (mc/find-map-by-id "accounts" id)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement