From 1c224609b9b3b15b3c82be6fe37c433ab212e17d Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Thu, 24 Apr 2025 10:46:23 +0200 Subject: [PATCH] :sparkles: Add prototype for returning number of used slots on customer --- backend/src/app/srepl/cli.clj | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/backend/src/app/srepl/cli.clj b/backend/src/app/srepl/cli.clj index 391ca3cadd..f457fb1e90 100644 --- a/backend/src/app/srepl/cli.clj +++ b/backend/src/app/srepl/cli.clj @@ -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