only inserting transactions if company found
This commit is contained in:
@@ -68,6 +68,7 @@
|
|||||||
|
|
||||||
|
|
||||||
(try
|
(try
|
||||||
|
(when company-id
|
||||||
(transactions/upsert!
|
(transactions/upsert!
|
||||||
{:post-date (time/parse post-date "YYYY-MM-dd")
|
{:post-date (time/parse post-date "YYYY-MM-dd")
|
||||||
:id (sha-256 (str id))
|
:id (sha-256 (str id))
|
||||||
@@ -84,7 +85,7 @@
|
|||||||
:check-id check-id
|
:check-id check-id
|
||||||
})
|
})
|
||||||
(when check-id
|
(when check-id
|
||||||
(checks/update! {:id check-id :status "cleared"}))
|
(checks/update! {:id check-id :status "cleared"})))
|
||||||
|
|
||||||
(catch Exception e
|
(catch Exception e
|
||||||
(println e)))))
|
(println e)))))
|
||||||
|
|||||||
Reference in New Issue
Block a user