(ns auto-ap.jobs.yodlee2
  (:require
   [auto-ap.import.yodlee2 :as yodlee2]
   [auto-ap.jobs.core :refer [execute]]
   [auto-ap.yodlee.core2 :as client2]))

(defn accounts-only []
  (execute "yodlee2-accounts" client2/upsert-accounts))

(defn -main [& _]
  (execute "import-yodlee" (fn []
                             (client2/upsert-accounts)
                             (yodlee2/import-yodlee2))))

