From 9b3964e6d760bc6813ed9e895d55a5b2c5f83ece Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Sat, 11 Nov 2023 00:10:57 +0100 Subject: [PATCH] :lipstick: Add naming improvements to some file type predicates --- common/src/app/common/types/file.cljc | 4 ++-- frontend/src/app/main/data/workspace/libraries.cljs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/src/app/common/types/file.cljc b/common/src/app/common/types/file.cljc index ad0e42e4b..b7a9800cd 100644 --- a/common/src/app/common/types/file.cljc +++ b/common/src/app/common/types/file.cljc @@ -58,10 +58,10 @@ [:media {:optional true} [:map-of {:gen/max 5} ::sm/uuid ::media-object]]]) -(def file-data? +(def valid-file-data? (sm/pred-fn ::data)) -(def media-object? +(def valid-media-object? (sm/pred-fn ::media-object)) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; diff --git a/frontend/src/app/main/data/workspace/libraries.cljs b/frontend/src/app/main/data/workspace/libraries.cljs index 05f4d3698..c1fbac8df 100644 --- a/frontend/src/app/main/data/workspace/libraries.cljs +++ b/frontend/src/app/main/data/workspace/libraries.cljs @@ -182,7 +182,7 @@ (defn add-media [media] - (dm/assert! (ctf/media-object? media)) + (dm/assert! (ctf/valid-media-object? media)) (ptk/reify ::add-media ptk/WatchEvent (watch [it _ _]