mirror of
https://github.com/bknd-io/bknd.git
synced 2026-10-23 06:45:11 +00:00
fix: plugin schema reconciliation
This commit is contained in:
@@ -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)) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user