fixes
This commit is contained in:
@@ -41,7 +41,7 @@
|
||||
(when-not (seq (->> filters
|
||||
(filter (fn [[_ v]]
|
||||
(not (nil? v))))
|
||||
(filter (comp (complement #{:id :start :sort :client_id :bank_account_id :potential_duplicates :per_page})
|
||||
(filter (comp (complement #{:id :start :sort :bank_account_id :potential_duplicates :per_page})
|
||||
first))
|
||||
(filter (fn [[k v]]
|
||||
(if (= :date_range k)
|
||||
@@ -141,8 +141,7 @@
|
||||
(when-not (seq (:client_id args))
|
||||
(throw (ex-info "Client is required"
|
||||
{:validation-error "client is required"})))
|
||||
;; TODO FIX THIS TO WORK WITH MULTIPLE
|
||||
(let [args (assoc args :clients (:clients context))
|
||||
(let [args (assoc args :clients [{:db/id [(:client_id args)]}])
|
||||
locations (pull-attr (dc/db conn)
|
||||
:client/locations
|
||||
(:client_id args))
|
||||
@@ -589,7 +588,6 @@
|
||||
:resolve :mutation/bulk-change-transaction-status}
|
||||
:bulk_code_transactions {:type :message
|
||||
:args {:filters {:type :transaction_filters}
|
||||
:client_id {:type :id}
|
||||
:vendor {:type :id}
|
||||
:approval_status {:type :transaction_approval_status}
|
||||
:accounts {:type '(list :edit_percentage_account)}
|
||||
@@ -630,8 +628,7 @@
|
||||
:resolve :mutation/match-transaction-rules}})
|
||||
|
||||
(def input-objects
|
||||
{:transaction_filters {:fields {:client_id {:type :id}
|
||||
:exact_match_id {:type :id}
|
||||
{:transaction_filters {:fields {:exact_match_id {:type :id}
|
||||
:import_batch_id {:type :id}
|
||||
:potential_duplicates {:type 'Boolean}
|
||||
:vendor_id {:type :id}
|
||||
|
||||
Reference in New Issue
Block a user