Added entity option to bypass deep scraped check on release day update.
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
'use strict';
|
||||
|
||||
function getRecursiveParameters(entity, parameters) {
|
||||
function getRecursiveParameters(entity, property = 'parameters', parameters) {
|
||||
if (entity.parent) {
|
||||
return getRecursiveParameters(entity.parent, { ...entity.parameters, ...parameters });
|
||||
return getRecursiveParameters(entity.parent, property, { ...entity[property], ...parameters });
|
||||
}
|
||||
|
||||
return { ...entity.parameters, ...parameters };
|
||||
return { ...entity[property], ...parameters };
|
||||
}
|
||||
|
||||
module.exports = getRecursiveParameters;
|
||||
|
||||
Reference in New Issue
Block a user