mirror of
https://github.com/penpot/penpot.git
synced 2026-09-12 23:19:28 +00:00
🐛 Fix problem with token retrieval
This commit is contained in:
parent
a1a469449e
commit
3270d65491
@ -88,7 +88,6 @@
|
|||||||
:columns [:id :name :perms :type :created-at :updated-at :expires-at]})
|
:columns [:id :name :perms :type :created-at :updated-at :expires-at]})
|
||||||
(mapv decode-row)))
|
(mapv decode-row)))
|
||||||
|
|
||||||
|
|
||||||
(def ^:private schema:get-current-mcp-token
|
(def ^:private schema:get-current-mcp-token
|
||||||
[:map {:title "get-current-mcp-token"}])
|
[:map {:title "get-current-mcp-token"}])
|
||||||
|
|
||||||
@ -101,6 +100,6 @@
|
|||||||
:type "mcp"}
|
:type "mcp"}
|
||||||
{:order-by [[:expires-at :asc] [:created-at :asc]]
|
{:order-by [[:expires-at :asc] [:created-at :asc]]
|
||||||
:columns [:token :expires-at]})
|
:columns [:token :expires-at]})
|
||||||
(remove #(ct/is-after? (:expires-at %) request-at))
|
(remove #(ct/is-after? request-at (:expires-at %)))
|
||||||
(map decode-row)
|
(map decode-row)
|
||||||
(first)))
|
(first)))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user