     (try 
       (helper-insert-wishlist finished)
       (catch Exception _
-        (new-insert-wishlist wishlist))))) ; simply try again if it fails
+        (insert-wishlist wishlist))))) ; simply try again if it fails
 
 (defn delete-wishlist [{:keys [code]}] ; code is unique
   (first

    (sql/with-query-results results
      ["select * from wish where wishlist=?" id]
      (into [] results))))

(defn get-wishes-for-wishlist-no-date [{:keys [id]}]
  (sql/with-connection db
    (sql/with-query-results results
      ["select * from wish where wishlist=?" id]
      (into [] (map #(dissoc % :created_at) results)))))

(defn insert-wish [wish {:keys [id]}]
  (sql/with-connection db


(defn get-wishlist-with-wishes [{:keys [code]}]
  (when-let [wishlist (get-wishlist {:code code})]
    (assoc wishlist :wishes (get-wishes-for-wishlist wishlist))))