Skip to content

Commit

Permalink
Pull session for GET-session-card
Browse files Browse the repository at this point in the history
  • Loading branch information
MTrost committed Aug 4, 2024
1 parent 2c4cdb7 commit 2463870
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/co/gaiwan/compass/routes/sessions.clj
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@
(defn GET-session-card [req]
(let [session-eid (parse-long (get-in req [:path-params :id]))]
{:html/body [session-html/session-card
(db/entity session-eid)
(db/pull '[* {:session/type [*]
:session/location [*]
:session.type [*]}] session-eid)
(:identity req)]}))

(defn duration-string-to-iso8601
Expand Down

0 comments on commit 2463870

Please sign in to comment.