Matches checks based on amount

This commit is contained in:
BC
2018-07-05 21:14:54 -07:00
parent a90c3d18af
commit cd82f62c15
3 changed files with 45 additions and 14 deletions

View File

@@ -11,7 +11,7 @@
(sql/format (-> (helpers/insert-into :transactions)
(helpers/values [row])
(postgres-helpers/upsert (-> (postgres-helpers/on-conflict :id)
(postgres-helpers/do-update-set :post_date :status)))))))
(postgres-helpers/do-update-set :post_date :status :check_id)))))))
(def base-query (sql/build :select :*
:from :transactions))