                                            :name name
                                            :version version})]
     (some-> (sc/fetch-one conn sqlv)
-            (usc/normalize-attrs)
-            (decode-data))))
+            (data/normalize-attrs))))
 
-(def ^:private update-collection-scheme
+(def update-collection-scheme
   (assoc create-collection-scheme
          :version [us/required us/integer]))
 

  (:require [suricatta.core :as sc]
            [clj-uuid :as uuid]
            [buddy.core.codecs :as codecs]
            [uxbox.config :as ucfg]
            [uxbox.schema :as us]
            [uxbox.sql :as sql]
            [uxbox.util.transit :as t]
            [uxbox.services.core :as usc])
  (:import ratpack.form.UploadedFile
           org.apache.commons.io.FilenameUtils))



;; --- Delete Collection

(def  delete-collection-schema
  {:id [us/required us/uuid]
   :user [us/required us/uuid]})

