wrap entry point to prepareValue to only accept 1 arg

This commit is contained in:
Michael Nahkies 2016-01-27 18:08:46 +13:00
parent fa16966f91
commit 3a9f5c3500

View File

@ -103,6 +103,10 @@ function normalizeQueryConfig (config, values, callback) {
} }
module.exports = { module.exports = {
prepareValue: prepareValue, prepareValue: function prepareValueWrapper (value) {
//this ensures that extra arguments do not get passed into prepareValue
//by accident, eg: from calling values.map(utils.prepareValue)
return prepareValue(value);
},
normalizeQueryConfig: normalizeQueryConfig normalizeQueryConfig: normalizeQueryConfig
}; };