From 92447e0836f943598428c1d822e1594607545bbb Mon Sep 17 00:00:00 2001 From: Bryce Covert Date: Fri, 3 Sep 2021 08:59:20 -0700 Subject: [PATCH] background worker proxies --- config/prod-background-worker.edn | 2 ++ config/prod.edn | 2 ++ src/clj/auto_ap/datomic/migrate.clj | 3 +-- src/clj/auto_ap/yodlee/core2.clj | 1 + 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/config/prod-background-worker.edn b/config/prod-background-worker.edn index 6bff3dce..23bd5390 100644 --- a/config/prod-background-worker.edn +++ b/config/prod-background-worker.edn @@ -24,4 +24,6 @@ :yodlee2-client-secret "cXTBmKbGfkaBFIpM" :yodlee2-base-url "https://production.api.yodlee.com/ysl" :yodlee2-fastlink "https://fl4.prod.yodlee.com/authenticate/USDevexProd2-319/fastlink/?channelAppName=usdevexprod2" + :yodlee2-proxy-host "172.31.10.83" + :yodlee2-proxy-port 8888 } diff --git a/config/prod.edn b/config/prod.edn index 55596073..7ebf8ebe 100644 --- a/config/prod.edn +++ b/config/prod.edn @@ -25,4 +25,6 @@ :yodlee2-client-secret "cXTBmKbGfkaBFIpM" :yodlee2-base-url "https://production.api.yodlee.com/ysl" :yodlee2-fastlink "https://fl4.prod.yodlee.com/authenticate/USDevexProd2-319/fastlink/?channelAppName=usdevexprod2" + :yodlee2-proxy-host "172.31.10.83" + :yodlee2-proxy-port 8888 } diff --git a/src/clj/auto_ap/datomic/migrate.clj b/src/clj/auto_ap/datomic/migrate.clj index cd7edea8..22f5c83d 100644 --- a/src/clj/auto_ap/datomic/migrate.clj +++ b/src/clj/auto_ap/datomic/migrate.clj @@ -335,8 +335,7 @@ :db/cardinality :db.cardinality/one}]]} :auto-ap/add-power-user-schema {:txes [[{:db/ident :user-role/power-user}]]}} :auto-ap/add-transaction-date-index {:txes [[{:db/ident :transaction/date - :db/index true}]] - :requires [:auto-ap/add-accounts]} + :db/index true}]]} sales/norms-map diff --git a/src/clj/auto_ap/yodlee/core2.clj b/src/clj/auto_ap/yodlee/core2.clj index 536be233..20f116e6 100644 --- a/src/clj/auto_ap/yodlee/core2.clj +++ b/src/clj/auto_ap/yodlee/core2.clj @@ -54,6 +54,7 @@ :accessToken)) (defn login-user [client-code] + (log/info "logging in as " client-code) (-> (str (:yodlee2-base-url env) "/auth/token") (client/post (merge {:headers (assoc base-headers "loginName" client-code