mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 09:17:23 +00:00
chore: destory collection in share collection plugin (#2968)
This commit is contained in:
parent
9249dcb896
commit
2c58d515da
@ -237,8 +237,10 @@ export class MultiAppShareCollectionPlugin extends Plugin {
|
||||
this.app.db.on(`afterRemoveCollection`, (collection) => {
|
||||
const subApps = [...AppSupervisor.getInstance().subApps()];
|
||||
for (const subApp of subApps) {
|
||||
if (subApp.db.hasCollection(collection.name)) {
|
||||
subApp.db.removeCollection(collection.name);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user