Skip to content
Snippets Groups Projects
Commit 501da90d authored by Allen Gilliland's avatar Allen Gilliland
Browse files

update old code for custom 'sel fields which is no longer needed.

parent 148beee4
No related branches found
No related tags found
No related merge requests found
......@@ -35,7 +35,7 @@
;; Returns the data response for a given query result as a CSV file
(def query-result-csv
(GET "/:id/csv" [id]
(let-404 [{:keys [result_data query_id] :as query-execution} (eval `(sel :one ~all-fields :id ~id))]
(let-404 [{:keys [result_data query_id] :as query-execution} (sel :one all-fields :id id)]
;; NOTE - this endpoint requires there to be a saved query associated with this execution
(check-404 query_id)
(let-404 [{{can_read :can_read name :name} :query} (hydrate query-execution :query)]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment