Skip to content

Commit

Permalink
replace java.util.UUID/fromString to parse-uuid
Browse files Browse the repository at this point in the history
  • Loading branch information
humorless committed Aug 9, 2024
1 parent 75b647d commit a47e5ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/co/gaiwan/compass/routes/oauth.clj
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
(let [code (get query-params "code")
state (get query-params "state")
{:keys [status body]} (exchange-code code)
redirect-url (:oauth/redirect-url (db/entity [:oauth/state-id (java.util.UUID/fromString state)]))]
redirect-url (:oauth/redirect-url (db/entity [:oauth/state-id (parse-uuid state)]))]
(if (not= 200 status)
{:status 302
:headers {"Location" "/"}
Expand Down

0 comments on commit a47e5ce

Please sign in to comment.