More forgiving

This commit is contained in:
Bryce Covert
2021-12-26 09:29:13 -08:00
parent f7bec7a86c
commit c5a65f008a

View File

@@ -452,7 +452,8 @@
(map (fn [x] [:db/retractEntity x]))))
(defn upsert-all []
(doseq [[client-code] (get-in env [:square-config])]
(doseq [[client-code] (get-in env [:square-config])
:when (d/entid (d/db conn) [:client/code client-code])]
(lc/with-context {:source (str "Square loading for " client-code)
:client client-code}
(log/info "Loading Orders")