If search index cant be updated, don't throw exception

This commit is contained in:
2024-05-04 18:34:19 -07:00
parent 7d9fe59592
commit f4fc82da05
4 changed files with 312 additions and 1051 deletions

View File

@@ -742,7 +742,13 @@
(exception->4xx #(assert-not-locked client-id (:invoice/date invoice)))
(let [transaction-result (audit-transact [transaction] (:identity request))]
(solr/touch-with-ledger (get-in transaction-result [:tempids "invoice"]))
(try
(solr/touch-with-ledger (get-in transaction-result [:tempids "invoice"]))
(catch Exception e
(alog/error ::cant-save-solr
:error e
))
)
(if extant?
(html-response