diff --git a/server/src/instant/model/app.clj b/server/src/instant/model/app.clj index 812b033e8..44afcc175 100644 --- a/server/src/instant/model/app.clj +++ b/server/src/instant/model/app.clj @@ -9,7 +9,8 @@ [instant.util.exception :as ex] [instant.util.uuid :as uuid-util] [instant.db.model.attr :as attr-model] - [instant.model.rule :as rule-model]) + [instant.model.rule :as rule-model] + [instant.db.model.transaction :as transaction-model]) (:import (java.util UUID))) @@ -281,7 +282,8 @@ ([conn {:keys [id]}] (next-jdbc/with-transaction [tx-conn conn] (attr-model/delete-by-app-id! tx-conn id) - (rule-model/delete-by-app-id! tx-conn {:app-id id})))) + (rule-model/delete-by-app-id! tx-conn {:app-id id}) + (transaction-model/create! tx-conn {:app-id id})))) (comment (clear-by-id! {:id "9a6d8f38-991d-4264-9801-4a05d8b1eab1"}))