chore: remove leftover fields

This commit is contained in:
Rafael Taranto 2023-12-15 12:01:48 +00:00
parent 3221a7a828
commit 0c9c7dbc0c

View file

@ -531,7 +531,6 @@ function getCustomersList (phone = null, name = null, address = null, id = null,
AND ($7 IS NULL OR id_card_data::json->>'documentNumber' = $7)
AND ($8 IS NULL OR email = $8)
limit $3`
console.log(email)
return db.any(sql, [ passableErrorCodes, anonymous.uuid, NUM_RESULTS, phone, name, address, id, email ])
.then(customers => Promise.all(_.map(customer =>
getCustomInfoRequestsData(customer)