From 3270d6549111467bfd0caa9d42ef0567de8fc16d Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Thu, 19 Mar 2026 14:35:48 +0100 Subject: [PATCH] :bug: Fix problem with token retrieval --- backend/src/app/rpc/commands/access_token.clj | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/src/app/rpc/commands/access_token.clj b/backend/src/app/rpc/commands/access_token.clj index 393f824599..40a27ee763 100644 --- a/backend/src/app/rpc/commands/access_token.clj +++ b/backend/src/app/rpc/commands/access_token.clj @@ -88,7 +88,6 @@ :columns [:id :name :perms :type :created-at :updated-at :expires-at]}) (mapv decode-row))) - (def ^:private schema:get-current-mcp-token [:map {:title "get-current-mcp-token"}]) @@ -101,6 +100,6 @@ :type "mcp"} {:order-by [[:expires-at :asc] [:created-at :asc]] :columns [:token :expires-at]}) - (remove #(ct/is-after? (:expires-at %) request-at)) + (remove #(ct/is-after? request-at (:expires-at %))) (map decode-row) (first)))