Closed bj-rutledge closed 2 weeks ago
Currently we are not using DRY code methodology when validating incoming queries in our routes:
if ( query.email == undefined && query.phoneNumber == undefined && query.customerNumber == undefined )
Write a helper that does this for each of the routes called validateQuery Account for thtat some of the queries come in as a query object some as a json object.
Currently we are not using DRY code methodology when validating incoming queries in our routes:
Write a helper that does this for each of the routes called validateQuery Account for thtat some of the queries come in as a query object some as a json object.