adding square2.

This commit is contained in:
2022-09-26 16:16:38 -07:00
parent bd0f8da16b
commit c348065b3b
2 changed files with 5 additions and 0 deletions

View File

@@ -11,6 +11,7 @@
[auto-ap.jobs.ledger-reconcile :as job-reconcile-ledger]
[auto-ap.jobs.plaid :as job-plaid]
[auto-ap.jobs.square :as job-square]
[auto-ap.jobs.square2 :as job-square2]
[auto-ap.jobs.sysco :as job-sysco]
[auto-ap.jobs.vendor-usages :as job-vendor-usages]
[auto-ap.jobs.yodlee2 :as job-yodlee2]
@@ -88,6 +89,9 @@
(cond (= job "square-import-job")
(job-square/-main)
(= job "square2-import-job")
(job-square2/-main)
(= job "reconcile-ledger")
(job-reconcile-ledger/-main)

View File

@@ -514,6 +514,7 @@
(doseq [client (apply get-square-clients clients)
:when (seq (filter :square-location/client-location (:client/square-locations client)))]
(lc/with-context {:client (:client/code client)}
(log/info "Importing square2 " (:client/code client))
(mark-integration-status client {:integration-status/last-attempt (coerce/to-date (time/now))})
(try+