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