 
 ;; --- Delete Collection
 
-(def ^:private delete-collection-schema
+(def  delete-collection-schema
   {:id [us/required us/uuid]
    :user [us/required us/uuid]})
 

  [conn user]
  (let [sqlv (sql/get-image-collections {:user user})]
    (->> (sc/fetch conn sqlv)
         (map usc/normalize-attrs))))

(defmethod usc/-query :list/image-collections
  [conn {:keys [user] :as params}]

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

