mirror of
https://github.com/penpot/penpot.git
synced 2025-06-16 00:21:41 +02:00
✨ Add prototype for returning number of used slots on customer
This commit is contained in:
parent
4b81468c9c
commit
1c224609b9
1 changed files with 5 additions and 0 deletions
|
@ -139,6 +139,10 @@
|
|||
:type :validation
|
||||
:hint "invalid data provided for `get-customer` rpc call"))
|
||||
|
||||
(defn- get-customer-slots
|
||||
[system]
|
||||
1)
|
||||
|
||||
(defmethod exec-command "get-customer"
|
||||
[params]
|
||||
(when-let [system (get-current-system)]
|
||||
|
@ -147,6 +151,7 @@
|
|||
{:id (get profile :id)
|
||||
:name (get profile :fullname)
|
||||
:email (get profile :email)
|
||||
:used-slots (get-customer-slots system)
|
||||
:subscription (get props :subscription)})))
|
||||
|
||||
(def ^:private schema:customer-subscription
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue