fixing introduced bugs.
This commit is contained in:
@@ -598,7 +598,12 @@
|
||||
(->graphql users)))
|
||||
|
||||
|
||||
|
||||
#_{:clj-kondo/ignore [:clojure-lsp/unused-public-var]}
|
||||
(defn categorize [x]
|
||||
(cond (<= x 0) :due
|
||||
(<= x 30 ) :due-30
|
||||
(<= x 60 ) :due-60
|
||||
:else :due-later))
|
||||
|
||||
|
||||
(defn get-expense-account-stats [_ {:keys [client_id] } _]
|
||||
|
||||
@@ -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?
|
||||
|
||||
@@ -87,6 +87,7 @@
|
||||
:token
|
||||
:accessToken))))
|
||||
|
||||
#_{:clj-kondo/ignore [:clojure-lsp/unused-public-var]}
|
||||
(defn get-accounts [client-code ]
|
||||
(let [cob-session (login-user (client-code->login client-code))]
|
||||
(-> (str (:yodlee2-base-url env) "/accounts")
|
||||
@@ -124,6 +125,7 @@
|
||||
|
||||
|
||||
|
||||
#_{:clj-kondo/ignore [:clojure-lsp/unused-public-var]}
|
||||
(defn get-transactions [client-code]
|
||||
(let [cob-session (login-user (client-code->login client-code))
|
||||
batch-size 100
|
||||
@@ -172,6 +174,7 @@
|
||||
:providerAccount
|
||||
first)))
|
||||
|
||||
#_{:clj-kondo/ignore [:clojure-lsp/unused-public-var]}
|
||||
(defn update-provider-account [client-code pa]
|
||||
(let [cob-session (login-user (client-code->login client-code))]
|
||||
|
||||
@@ -216,6 +219,7 @@
|
||||
(log/error e)
|
||||
(throw e))))
|
||||
|
||||
#_{:clj-kondo/ignore [:clojure-lsp/unused-public-var]}
|
||||
(defn create-user [client-code]
|
||||
(let [cob-session (login-cobrand)]
|
||||
(-> (str (:yodlee2-base-url env) "/user/register")
|
||||
@@ -263,6 +267,7 @@
|
||||
provider-account-ids)))
|
||||
|
||||
|
||||
#_{:clj-kondo/ignore [:clojure-lsp/unused-public-var]}
|
||||
(defn get-provider-accounts-with-accounts [client-code]
|
||||
(let [provider-accounts (by :id (get-provider-accounts-with-details client-code))
|
||||
accounts (get-accounts-for-providers client-code (keys provider-accounts))]
|
||||
|
||||
@@ -533,6 +533,7 @@
|
||||
(square/upsert client square-location (c/to-date-time date)
|
||||
(t/plus (c/to-date-time date) (t/days 1))))))
|
||||
|
||||
#_{:clj-kondo/ignore [:clojure-lsp/unused-public-var]}
|
||||
(defn upsert-invoice-amounts [tsv]
|
||||
(let [data (with-open [reader (io/reader (char-array tsv))]
|
||||
(doall (csv/read-csv reader :separator \tab)))
|
||||
|
||||
Reference in New Issue
Block a user