mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 04:27:21 +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