adding square2.
This commit is contained in:
@@ -11,6 +11,7 @@
|
|||||||
[auto-ap.jobs.ledger-reconcile :as job-reconcile-ledger]
|
[auto-ap.jobs.ledger-reconcile :as job-reconcile-ledger]
|
||||||
[auto-ap.jobs.plaid :as job-plaid]
|
[auto-ap.jobs.plaid :as job-plaid]
|
||||||
[auto-ap.jobs.square :as job-square]
|
[auto-ap.jobs.square :as job-square]
|
||||||
|
[auto-ap.jobs.square2 :as job-square2]
|
||||||
[auto-ap.jobs.sysco :as job-sysco]
|
[auto-ap.jobs.sysco :as job-sysco]
|
||||||
[auto-ap.jobs.vendor-usages :as job-vendor-usages]
|
[auto-ap.jobs.vendor-usages :as job-vendor-usages]
|
||||||
[auto-ap.jobs.yodlee2 :as job-yodlee2]
|
[auto-ap.jobs.yodlee2 :as job-yodlee2]
|
||||||
@@ -88,6 +89,9 @@
|
|||||||
(cond (= job "square-import-job")
|
(cond (= job "square-import-job")
|
||||||
(job-square/-main)
|
(job-square/-main)
|
||||||
|
|
||||||
|
(= job "square2-import-job")
|
||||||
|
(job-square2/-main)
|
||||||
|
|
||||||
(= job "reconcile-ledger")
|
(= job "reconcile-ledger")
|
||||||
(job-reconcile-ledger/-main)
|
(job-reconcile-ledger/-main)
|
||||||
|
|
||||||
|
|||||||
@@ -514,6 +514,7 @@
|
|||||||
(doseq [client (apply get-square-clients clients)
|
(doseq [client (apply get-square-clients clients)
|
||||||
:when (seq (filter :square-location/client-location (:client/square-locations client)))]
|
:when (seq (filter :square-location/client-location (:client/square-locations client)))]
|
||||||
(lc/with-context {:client (:client/code 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))})
|
(mark-integration-status client {:integration-status/last-attempt (coerce/to-date (time/now))})
|
||||||
|
|
||||||
(try+
|
(try+
|
||||||
|
|||||||
Reference in New Issue
Block a user