mirror of
https://github.com/penpot/penpot.git
synced 2026-03-22 10:23:43 +00:00
🐛 Fix problem with token retrieval
This commit is contained in:
committed by
Alonso Torres
parent
a1a469449e
commit
3270d65491
@@ -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)))
|
||||
|
||||
Reference in New Issue
Block a user