From 1c75e5b46bc92ec75a8ecac432f8cad9c46e81c8 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Sat, 11 Nov 2023 00:09:40 +0100 Subject: [PATCH] :lipstick: Add minor cosmetic improvement on profile rpc ns --- backend/src/app/rpc/commands/profile.clj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/app/rpc/commands/profile.clj b/backend/src/app/rpc/commands/profile.clj index c79e4c773..a5735d694 100644 --- a/backend/src/app/rpc/commands/profile.clj +++ b/backend/src/app/rpc/commands/profile.clj @@ -53,7 +53,7 @@ [:props {:optional true} [:map-of {:title "ProfileProps"} :keyword :any]]]) -(def profile? +(def valid-profile? (sm/pred-fn schema:profile)) ;; --- QUERY: Get profile (own) @@ -95,7 +95,7 @@ (dm/assert! "expected valid profile data" - (profile? params)) + (valid-profile? params)) (db/with-atomic [conn pool] ;; NOTE: we need to retrieve the profile independently if we use