When plaid merchant is linked to vendor, automatically code to that vendor.

This commit is contained in:
Bryce
2023-07-24 09:10:28 -07:00
parent dfd1af77c4
commit 445375d15e
54 changed files with 9155 additions and 68 deletions

View File

@@ -141,20 +141,7 @@
:name (first name)}))
[]))
(def single-thread (ex/fixed-thread-executor 1))
(defn rebuild-search-index []
(de/future-with
single-thread
(auto-ap.solr/index-documents-raw
auto-ap.solr/impl
"plaid_merchants"
(for [[result] (dc/qseq {:query '[:find (pull ?v [:plaid-merchant/name :db/id])
:in $
:where [?v :plaid-merchant/name]]
:args [(dc/db conn)]})]
{"id" (:db/id result)
"name" (:plaid-merchant/name result)}))))
(defn attach [schema]
(->