wrap entry point to prepareValue to only accept 1 arg
This commit is contained in:
parent
fa16966f91
commit
3a9f5c3500
@ -103,6 +103,10 @@ function normalizeQueryConfig (config, values, callback) {
|
||||
}
|
||||
|
||||
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
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user