Skip to content

Commit

Permalink
Keep did or role if it is already in the query opts
Browse files Browse the repository at this point in the history
  • Loading branch information
JaceRockman committed Jun 6, 2024
1 parent 1ddb1c5 commit 3d3c889
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/clj/fluree/db/api/query.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@
(defn query-connection-fql
[conn query {:keys [role did]}]
(go-try
(let [credentialed-opts-query (update query :opts #(assoc % :role role :did did))
(let [credentialed-opts-query (update query :opts #(merge {:role role :did did} %))
{query :subject, did :did} (or (<? (cred/verify credentialed-opts-query))
{:subject credentialed-opts-query})
{:keys [t opts] :as query*} (update query :opts sanitize-query-options did)
Expand Down

0 comments on commit 3d3c889

Please sign in to comment.