lib/finapps/rest/documents_orders.rb in finapps-5.2.0 vs lib/finapps/rest/documents_orders.rb in finapps-5.2.1
- old
+ new
@@ -88,19 +88,18 @@
end
search_arr
end
def with_space_search(term)
- [
- {"applicant.email": term},
- {"applicant.first_name": term},
- {"applicant.last_name": term},
- {
- reference_no: {
- "$regex": "^#{term}", "$options": 'i'
- }
- }
- ]
+ [{"applicant.email": term},
+ {"applicant.first_name": term},
+ {"applicant.last_name": term},
+ {"applicant.external_id": term},
+ {
+ reference_no: {
+ "$regex": "^#{term}", "$options": 'i'
+ }
+ }]
end
def tag_query(tag)
return {} unless tag