fix: gathering
This commit is contained in:
parent
e7249a3362
commit
62cee3484c
|
@ -933,11 +933,15 @@ class Flecks {
|
||||||
}
|
}
|
||||||
if (raw) {
|
if (raw) {
|
||||||
const decorated = await this.checkAndDecorateRawGathered(hook, raw, check);
|
const decorated = await this.checkAndDecorateRawGathered(hook, raw, check);
|
||||||
this.constructor.debug('updating gathered %s from %s...', hook, fleck);
|
this.constructor.debug(
|
||||||
this.constructor.debugSilly('%O', decorated);
|
'updating gathered %s from %s with %O',
|
||||||
|
hook,
|
||||||
|
fleck,
|
||||||
|
Object.keys(decorated),
|
||||||
|
);
|
||||||
const entries = Object.entries(decorated);
|
const entries = Object.entries(decorated);
|
||||||
entries.forEach(([type, Class]) => {
|
entries.forEach(([type, Class]) => {
|
||||||
const {[type]: {[idProperty]: id}} = gathered;
|
const {id} = Class;
|
||||||
const Subclass = wrapGathered(Class, id, idProperty, type, typeProperty);
|
const Subclass = wrapGathered(Class, id, idProperty, type, typeProperty);
|
||||||
// eslint-disable-next-line no-multi-assign
|
// eslint-disable-next-line no-multi-assign
|
||||||
gathered[type] = Subclass;
|
gathered[type] = Subclass;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user