 
 (defn refresh []
   (stop)
+  (fix-ns)
   (tn/refresh))
 
 (defn refresh-all []
   (stop)
+  (fix-ns)
   (tn/refresh-all))
 
 (defn go

  "stops all states defined by defstate, reloads modified source files, and restarts the states"
  []
  (stop)
  (tn/refresh :after 'user/go))

(tn/set-refresh-dirs "./src/buyme_aggregation_backend")

(ns user
  (:require [clojure.tools.namespace.repl :as tn]
            [mount.core :as mount]
            [buyme-aggregation-backend.core :as app]))

(defn fix-ns []
  (ns-unalias (find-ns 'user) 'app))

(defn start []
  (app/-main))
