only creates vendor links when a vendor has a name.

This commit is contained in:
2024-02-27 22:43:51 -08:00
parent eb15a55450
commit bfc0f8b700

View File

@@ -391,8 +391,9 @@
:transaction/forecast-match forecast_match}]]
(and (:transaction/plaid-merchant existing-transaction)
(not (pull-attr (dc/db conn) :vendor/plaid-merchant vendor_id))
(pull-attr (dc/db conn) :vendor/name vendor_id)
vendor_id)
(conj {:db/id vendor_id
(conj {:db/id vendor_id
:vendor/plaid-merchant (-> existing-transaction :transaction/plaid-merchant :db/id)}))
(:id context))
(solr/touch-with-ledger id)