|
|
@ -50,24 +50,12 @@ function checkCategoryParam(params) { |
|
|
|
return _.isObject(params) && params.hasOwnProperty('categories'); |
|
|
|
return _.isObject(params) && params.hasOwnProperty('categories'); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* Add details properties |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* @param {object} params clean query params |
|
|
|
|
|
|
|
* @param {object} src |
|
|
|
|
|
|
|
* @param {object} dst |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
// function addDetails(params, src, dst) {
|
|
|
|
|
|
|
|
// copyProperties(params, src, DETAILS_PROPS, dst);
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Copy specified properties from source to dest. |
|
|
|
* Copy specified properties from source to dest. |
|
|
|
* Ignore missing properties. |
|
|
|
* Ignore missing properties. |
|
|
|
* |
|
|
|
* |
|
|
|
* @param {object} params clean query params |
|
|
|
* @param {object} params clean query params |
|
|
|
* @param {object} source |
|
|
|
* @param {object} source |
|
|
|
* @param {[]} props |
|
|
|
|
|
|
|
* @param {object} dst |
|
|
|
* @param {object} dst |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
function copyProperties( params, source, dst ) { |
|
|
|
function copyProperties( params, source, dst ) { |
|
|
|