mirror of
https://github.com/penpot/penpot.git
synced 2025-12-12 06:24:17 +01:00
✨ Add prototype for returning number of used slots on customer
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user