after creation of inverse relation we need to clear the cache, otherwise inverse relations will be created infinitely, fixes #2269

This commit is contained in:
zadam 2021-10-27 22:36:33 +02:00
parent 8a455e83f0
commit 7f9019322b

View File

@ -137,6 +137,9 @@ eventService.subscribe(eventService.ENTITY_CHANGED, ({ entityName, entity }) =>
value: note.noteId,
isInheritable: entity.isInheritable
}).save();
// becca will not be updated before we'll check from the other side which would create infinite relation creation (#2269)
targetNote.invalidateThisCache();
}
});
});