lib/finapps/rest/documents_orders.rb in finapps-5.0.47 vs lib/finapps/rest/documents_orders.rb in finapps-5.1.0

- old
+ new

@@ -93,21 +93,21 @@ [ {"applicant.email": term}, {"applicant.first_name": term}, {"applicant.last_name": term}, { - "reference_no": { + reference_no: { "$regex": "^#{term}", "$options": 'i' } } ] end def tag_query(tag) return {} unless tag - {"tag": tag.empty? ? nil : tag} + {tag: tag.empty? ? nil : tag} end def status_query(status) return {} unless status @@ -115,10 +115,10 @@ end def consumer_query(consumer) return {} unless consumer - {"consumer_id": consumer.empty? ? nil : consumer} + {consumer_id: consumer.empty? ? nil : consumer} end end end end