feat: add search functionality to customer page
This commit is contained in:
parent
b343ce386f
commit
2a2a0a8a8b
3 changed files with 3 additions and 3 deletions
|
|
@ -451,6 +451,7 @@ function batch () {
|
|||
* @returns {array} Array of customers with it's transactions aggregations
|
||||
*/
|
||||
function getCustomersList (phone = null, name = null, address = null, id = null) {
|
||||
|
||||
const sql = `SELECT id, authorized_override, days_suspended, is_suspended, front_camera_path, front_camera_override,
|
||||
phone, sms_override, id_card_data, id_card_data_override, id_card_data_expiration,
|
||||
id_card_photo_path, id_card_photo_override, us_ssn, us_ssn_override, sanctions, sanctions_at,
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
const anonymous = require('../../../constants').anonymousCustomer
|
||||
const customers = require('../../../customers')
|
||||
const filters = require('../../filters')
|
||||
const loyalty = require('../../../loyalty')
|
||||
|
||||
const resolvers = {
|
||||
Customer: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue