diff --git a/src/clj/job_streamer/control_bus/component/calendar.clj b/src/clj/job_streamer/control_bus/component/calendar.clj index 87a25e8..ece2a89 100644 --- a/src/clj/job_streamer/control_bus/component/calendar.clj +++ b/src/clj/job_streamer/control_bus/component/calendar.clj @@ -131,6 +131,8 @@ :where [[?e :calendar/name ?n]]} name) :put! (fn [{cal :edn}] + (d/transact datomic + [[:db.fn/retractEntity (:db/id cal)]]) (d/transact datomic [{:db/id (:db/id cal) :calendar/name (:calendar/name cal)