fixing introduced bugs.

This commit is contained in:
2022-07-26 08:43:16 -07:00
parent 84f7e734f0
commit 665ac6ca7f
7 changed files with 17 additions and 6 deletions

View File

@@ -15,6 +15,7 @@
[unilog.context :as lc]
[yang.scheduler :as scheduler]))
#_{:clj-kondo/ignore [:unresolved-var]}
(defn yodlee->transaction [transaction use-date-instead-of-post-date?]
(let [{post-date :postDate
account-id :accountId
@@ -32,8 +33,7 @@
date (atime/parse date "YYYY-MM-dd")]
#:transaction
{:post-date (coerce/to-date (atime/parse post-date "YYYY-MM-dd"))
:id #_{:clj-kondo/ignore [:unresolved-var]}
(di/sha-256 (str id))
:id (di/sha-256 (str id))
:raw-id (str id)
:account-id account-id
:date (if use-date-instead-of-post-date?