enormous refactor but simplified much!

This commit is contained in:
Bryce Covert
2021-12-22 18:14:49 -08:00
parent a7c9d376bc
commit 7489426ccb
25 changed files with 1188 additions and 1258 deletions

View File

@@ -5,9 +5,12 @@
[mount.core :as mount]
[yang.scheduler :as scheduler]
[clojure.tools.logging :as log]
[auto-ap.intuit.import :as i]
[auto-ap.import.intuit :as i]
[auto-ap.import.plaid :as p]
[unilog.context :as lc]
[auto-ap.yodlee.import :as y]))
[auto-ap.import.yodlee :as y]
[auto-ap.import.yodlee2 :as y2]
))
(def queue-url (:requests-queue-url env))
@@ -22,19 +25,25 @@
(cond
(= ":intuit" body)
(try
(i/upsert-transactions)
(i/import-intuit)
(catch Exception e
(log/error e)))
(= ":yodlee" body)
(try
(y/do-import)
(y/import-yodlee)
(catch Exception e
(log/error e)))
(= ":yodlee2" body)
(try
(y/do-import2)
(y2/import-yodlee2)
(catch Exception e
(log/error e)))
(= ":plaid" body)
(try
(p/import-plaid)
(catch Exception e
(log/error e))))
(sqs/delete-message {:queue-url queue-url