adding integreat yodlee2 environment and try to prevent crashing?

This commit is contained in:
2021-01-26 07:28:47 -08:00
parent 5013f4ac47
commit 7b52c33bd4
3 changed files with 19 additions and 1 deletions

View File

@@ -311,7 +311,10 @@
(mapcat (fn [client]
(log/info "Upserting Yodlee Accounts for " (:client/code client))
(lc/with-context {:client-code (:client/code client)}
(upsert-accounts-tx (:client/code client)))))
(try
(upsert-accounts-tx (:client/code client))
(catch Exception e
(log/error "Could not update client " (:client/code client)))))))
(async/to-chan (d-clients/get-all)))
(let [result (async/<!! (async/into [] output-chan))]
(log/info "Current yodlee state is " result)