other fixes
This commit is contained in:
@@ -6,7 +6,8 @@
|
||||
[yang.scheduler :as scheduler]
|
||||
[clojure.tools.logging :as log]
|
||||
[auto-ap.intuit.import :as i]
|
||||
[unilog.context :as lc]))
|
||||
[unilog.context :as lc]
|
||||
[auto-ap.yodlee.import :as y]))
|
||||
|
||||
(def queue-url (:requests-queue-url env))
|
||||
|
||||
@@ -18,9 +19,22 @@
|
||||
:count 1}))]
|
||||
(when message-id
|
||||
(log/infof "processing message %s with body %s" message-id body )
|
||||
(if (= ":intuit" body)
|
||||
(cond
|
||||
(= ":intuit" body)
|
||||
(try
|
||||
(i/upsert-transactions)
|
||||
(catch Exception e
|
||||
(log/error e)))
|
||||
|
||||
(= ":yodlee" body)
|
||||
(try
|
||||
(y/do-import)
|
||||
(catch Exception e
|
||||
(log/error e)))
|
||||
|
||||
(= ":yodlee2" body)
|
||||
(try
|
||||
(y/do-import2)
|
||||
(catch Exception e
|
||||
(log/error e))))
|
||||
(sqs/delete-message {:queue-url queue-url
|
||||
|
||||
Reference in New Issue
Block a user