case insensitiwve.
This commit is contained in:
@@ -4,7 +4,8 @@
|
|||||||
[auto-ap.graphql.utils :refer [limited-clients]]
|
[auto-ap.graphql.utils :refer [limited-clients]]
|
||||||
[clj-time.coerce :as c]
|
[clj-time.coerce :as c]
|
||||||
[clj-time.coerce :as coerce]
|
[clj-time.coerce :as coerce]
|
||||||
[clojure.tools.logging :as log]))
|
[clojure.tools.logging :as log]
|
||||||
|
[clojure.string :as str]))
|
||||||
|
|
||||||
(defn sort-fn [sort-by]
|
(defn sort-fn [sort-by]
|
||||||
(cond
|
(cond
|
||||||
@@ -116,8 +117,9 @@
|
|||||||
(:description args)
|
(:description args)
|
||||||
(merge-query {:query {:in ['?description]
|
(merge-query {:query {:in ['?description]
|
||||||
:where ['[?e :transaction/description-original ?do]
|
:where ['[?e :transaction/description-original ?do]
|
||||||
'[(.contains ?do ?description)]]}
|
'[(clojure.string/lower-case ?do) ?do2]
|
||||||
:args [(:description args)]})
|
'[(.contains ?do2 ?description)]]}
|
||||||
|
:args [(clojure.string/lower-case (:description args))]})
|
||||||
|
|
||||||
(:sort args) (add-sorter-fields {"client" ['[?e :transaction/client ?c]
|
(:sort args) (add-sorter-fields {"client" ['[?e :transaction/client ?c]
|
||||||
'[?c :client/name ?sort-client]]
|
'[?c :client/name ?sort-client]]
|
||||||
|
|||||||
Reference in New Issue
Block a user