Skip to content
This repository has been archived by the owner on Nov 13, 2017. It is now read-only.

Commit

Permalink
Reduce duplication more
Browse files Browse the repository at this point in the history
  • Loading branch information
oakes committed Dec 18, 2013
1 parent 962b478 commit 968da97
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions common/clojure/nightweb/db.clj
Original file line number Diff line number Diff line change
Expand Up @@ -425,9 +425,5 @@

(defn delete-user
[user-hash]
(let [statement ["userhash = ?" user-hash]]
(jdbc/delete! @spec :user statement)
(jdbc/delete! @spec :post statement)
(jdbc/delete! @spec :pic statement)
(jdbc/delete! @spec :fav statement)
(jdbc/delete! @spec :tag statement)))
(doseq [table [:user :post :pic :fav :tag]]
(jdbc/delete! @spec table ["userhash = ?" user-hash])))

0 comments on commit 968da97

Please sign in to comment.