From 5751ac6b4e4f4d6235358e19a69428a1da03ae6b Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Sun, 31 Jan 2021 11:49:33 +0100 Subject: [PATCH] :sparkles: Minor adaptations for tests of profile creation function. --- backend/src/app/rpc/mutations/profile.clj | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/backend/src/app/rpc/mutations/profile.clj b/backend/src/app/rpc/mutations/profile.clj index 2ffad5f30d..cefef91d98 100644 --- a/backend/src/app/rpc/mutations/profile.clj +++ b/backend/src/app/rpc/mutations/profile.clj @@ -160,10 +160,12 @@ (defn- create-profile "Create the profile entry on the database with limited input filling all the other fields with defaults." - [conn {:keys [id fullname email password demo? props] :as params}] + [conn {:keys [id fullname email password demo? props is-active] + :or {is-active false} + :as params}] (let [id (or id (uuid/next)) demo? (if (boolean? demo?) demo? false) - active? (if demo? true false) + active? (if demo? true is-active) props (db/tjson (or props {})) password (derive-password password)] (-> (db/insert! conn :profile