       (let [v (delete-maps-by-dataset-id tenant-conn {:id id})](lib/ok {:id id})))))
 
 (defn update
-  "Update dataset with id"
   [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



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

    (lib/not-found {:id dataset-id})))

(defn update-meta
  [tenant-conn id {:strs [name]}]
  (update-dataset-meta tenant-conn {:id id :title name})
  (lib/ok {}))
