This commit is contained in:
2022-03-17 09:40:45 -07:00
parent e55e137ad1
commit d7ccb00744

View File

@@ -184,7 +184,7 @@
(defn get-profit-and-loss [context args _]
(let [client-id (:client_id args)
client-ids (or (some-> client-id vector)
(:client_ids args))
(filter identity (:client_ids args)))
_ (when (not (seq client-ids))
(throw (ex-info "Please select a client." {:validation-error "Please select a client."})))
_ (doseq [client-id client-ids]