From 7fd95d91755c1c2790ec82408f78a5ce64b28a13 Mon Sep 17 00:00:00 2001 From: Bryce Covert Date: Thu, 2 Feb 2023 08:30:03 -0800 Subject: [PATCH] makes yodlee2 not error out on weird accounts --- src/clj/auto_ap/yodlee/core2.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/clj/auto_ap/yodlee/core2.clj b/src/clj/auto_ap/yodlee/core2.clj index 7c71b331..cb64ab98 100644 --- a/src/clj/auto_ap/yodlee/core2.clj +++ b/src/clj/auto_ap/yodlee/core2.clj @@ -311,7 +311,7 @@ (fn [a] {:yodlee-account/id (:id a) :yodlee-account/name (str (:providerName a) " (" (:accountName a) ")") - :yodlee-account/number (:accountNumber a) + :yodlee-account/number (or (:accountNumber a) "Unknown") :yodlee-account/status (or (-> a :dataset first :additionalStatus) "unknown") :yodlee-account/available-balance (or (-> a :currentBalance :amount) 0.0)})