If search index cant be updated, don't throw exception
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user