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