Skip to content

Commit

Permalink
trigger invalidations
Browse files Browse the repository at this point in the history
  • Loading branch information
nezaj committed Sep 27, 2024
1 parent 668a532 commit 53e47af
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions server/src/instant/model/app.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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)))

Expand Down Expand Up @@ -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"}))
Expand Down

0 comments on commit 53e47af

Please sign in to comment.