diff --git a/packages/core/src/common/dataSourceManager.ts b/packages/core/src/common/dataSourceManager.ts index d295e542d0b..8f375575259 100644 --- a/packages/core/src/common/dataSourceManager.ts +++ b/packages/core/src/common/dataSourceManager.ts @@ -189,6 +189,9 @@ export abstract class DataSourceManager< protected abstract checkConnected(dataSource: T): Promise; protected abstract destroyDataSource(dataSource: T): Promise; + /** + * Call destroyDataSource() on all data sources + */ public async stop(): Promise { const arr = Array.from(this.dataSource.values()); await Promise.all(