mirror of
https://github.com/penpot/penpot.git
synced 2025-06-17 02:11:39 +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
|
:type :validation
|
||||||
:hint "invalid data provided for `get-customer` rpc call"))
|
:hint "invalid data provided for `get-customer` rpc call"))
|
||||||
|
|
||||||
|
(defn- get-customer-slots
|
||||||
|
[system]
|
||||||
|
1)
|
||||||
|
|
||||||
(defmethod exec-command "get-customer"
|
(defmethod exec-command "get-customer"
|
||||||
[params]
|
[params]
|
||||||
(when-let [system (get-current-system)]
|
(when-let [system (get-current-system)]
|
||||||
|
@ -147,6 +151,7 @@
|
||||||
{:id (get profile :id)
|
{:id (get profile :id)
|
||||||
:name (get profile :fullname)
|
:name (get profile :fullname)
|
||||||
:email (get profile :email)
|
:email (get profile :email)
|
||||||
|
:used-slots (get-customer-slots system)
|
||||||
:subscription (get props :subscription)})))
|
:subscription (get props :subscription)})))
|
||||||
|
|
||||||
(def ^:private schema:customer-subscription
|
(def ^:private schema:customer-subscription
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue