js/util/live-collection.js
Function handleEvent
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
handleEvent (name, eventCreatedAt, event) {
return Promise.map(this.items, (item) => {
if (
event[item.$context.toString()] &&
event[item.$context.toString()].$context.toString() === item.$context.toString() &&
TODO found Open
Open
event[item.$context.toString()].$version > item.$version // TODO: check if this is a good decision
- Exclude checks