mirror of
https://github.com/penpot/penpot.git
synced 2025-05-12 07:16:37 +02:00
✨ Properly move viewer queries to commands
And change deprecation version on viewer queries
This commit is contained in:
parent
ba2729fa4a
commit
6a699d7f09
5 changed files with 21 additions and 18 deletions
|
@ -344,6 +344,7 @@
|
|||
'app.rpc.commands.search
|
||||
'app.rpc.commands.teams
|
||||
'app.rpc.commands.verify-token
|
||||
'app.rpc.commands.viewer
|
||||
'app.rpc.commands.webhooks)
|
||||
(map (partial process-method cfg))
|
||||
(into {}))))
|
||||
|
|
|
@ -84,6 +84,6 @@
|
|||
::cond/key-fn files/get-file-etag
|
||||
::cond/reuse-key? true
|
||||
::doc/added "1.17"}
|
||||
[{:keys [pool]} {:keys [::rpc/profile-id] :as params}]
|
||||
[{:keys [::db/pool]} {:keys [::rpc/profile-id] :as params}]
|
||||
(with-open [conn (db/open pool)]
|
||||
(get-view-only-bundle conn (assoc params :profile-id profile-id))))
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
(sv/defmethod ::view-only-bundle
|
||||
{::rpc/auth false
|
||||
::doc/added "1.3"
|
||||
::doc/deprecated "1.17"}
|
||||
::doc/deprecated "1.18"}
|
||||
[{:keys [pool] :as cfg} {:keys [features components-v2] :as params}]
|
||||
(with-open [conn (db/open pool)]
|
||||
(let [;; BACKWARD COMPATIBILTY with the components-v2 parameter
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue