enormous refactor but simplified much!
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user