fix: plugin schema reconciliation

This commit is contained in:
dswbx
2025-06-18 10:31:40 +02:00
parent 344d729320
commit b2086c4da7
3 changed files with 19 additions and 4 deletions

View File

@@ -66,9 +66,14 @@ export class ModuleHelper {
}
ensureRelation(relation: EntityRelation) {
if (!this.em.relations.exists(relation)) {
try {
// most reliable way at the moment
this.em.addRelation(relation);
this.flags.sync_required = true;
} catch (e) {}
// @todo: improve this function, seems like it still doesn't catch all cases
if (!this.em.relations.exists(relation)) {
}
}