Commit 780efd9b by 3rd-Eden

[minor] Add the optional `includeZeroPopulation` query param to the requests

[minor] Renamed to argument to something `smaller` and casted it to a boolean
parent 17ac5d7a
......@@ -25,7 +25,7 @@ function Location(api) {
* @api public
*/
Location.prototype.normalize = function normalize() {
var args = this.api.args(arguments, 'includeZeroPopulation', 'casing');
var args = this.api.args(arguments, 'population', 'casing');
//
// Add a custom endpoint.
......@@ -47,7 +47,7 @@ Location.prototype.normalize = function normalize() {
* @api public
*/
Location.prototype.enrich = function enrichment() {
var args = this.api.args(arguments, 'includeZeroPopulation', 'casing');
var args = this.api.args(arguments, 'population', 'casing');
//
// Add a custom endpoint.
......
......@@ -42,6 +42,7 @@ FullContact.prototype.process = function req(api, query, args) {
//
if (args.queue) query.queue = args.queue;
if (args.casing) query.casing = args.casing;
if (args.population) query.includeZeroPopulation = !!args.population;
//
// The packet that is send to the server or queued when we are in queuing
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment