             order-by-expr)))
 
 (defn fetch-metadata
-  "Fetch dataset metadata (everything apart from rows) with id"
+  "Fetch dataset metadata (everything apart from rows)"
   [conn id]
   (if-let [dataset (dataset-by-id conn {:id id})]
     (let [columns (remove #(get % "hidden") (:columns dataset))]



(defn delete
  "Delete dataset with id"
  [tenant-conn id]
  (let [c (delete-dataset-by-id tenant-conn {:id id})]
    (if (zero? c)

      (let [v (delete-maps-by-dataset-id tenant-conn {:id id})](lib/ok {:id id})))))

(defn update
  [tenant-conn config dataset-id {refresh-token "refreshToken"}]
  (if-let [{data-source-spec :spec
            data-source-id :id} (data-source-by-dataset-id tenant-conn
