should only have one arity with this thing.
This commit is contained in:
@@ -409,10 +409,7 @@
|
||||
|
||||
|
||||
|
||||
(defn do-import
|
||||
([]
|
||||
(do-import (client/get-transactions)))
|
||||
([transactions]
|
||||
(defn import-yodlee [transactions]
|
||||
(lc/with-context {:source "Import yodlee transactions"}
|
||||
(let [import-id (start-import :import-source/yodlee "Automated Yodlee User")]
|
||||
(lc/with-context {:import-id import-id}
|
||||
@@ -437,15 +434,16 @@
|
||||
(finish-import (assoc result :db/id import-id)))
|
||||
(catch Exception e
|
||||
(log/error e)
|
||||
(finish-import {:db/id import-id}))))))))
|
||||
(finish-import {:db/id import-id})))))))
|
||||
|
||||
(defn do-import []
|
||||
(import-yodlee (client/get-transactions)))
|
||||
|
||||
(def do-import (allow-once do-import))
|
||||
|
||||
|
||||
(defn do-import2
|
||||
([]
|
||||
(log/info "starting import")
|
||||
(do-import2 (client2/get-transactions "NGGL")))
|
||||
([transactions]
|
||||
(defn import-yodlee2
|
||||
[transactions]
|
||||
(lc/with-context {:source "Import yodlee2 transactions"}
|
||||
(let [import-id (start-import :import-source/yodlee "Automated Yodlee User")]
|
||||
(lc/with-context {:import-id import-id}
|
||||
@@ -471,7 +469,11 @@
|
||||
(finish-import (assoc result :db/id import-id)))
|
||||
(catch Exception e
|
||||
(log/error e)
|
||||
(finish-import {:db/id import-id}))))))))
|
||||
(finish-import {:db/id import-id})))))))
|
||||
|
||||
(defn do-import2 []
|
||||
(log/info "starting import")
|
||||
(import-yodlee2 (client2/get-transactions "NGGL")))
|
||||
|
||||
(def do-import2 (allow-once do-import2))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user