Added entity option to bypass deep scraped check on release day update.

This commit is contained in:
DebaucheryLibrarian
2026-02-21 00:56:15 +01:00
parent 0f44b4d410
commit 6b768b6828
3 changed files with 27 additions and 13 deletions

View File

@@ -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;