|
@@ -58,7 +58,7 @@ export class MainConfiguration {
|
|
|
async onServerReady?(container: IMidwayContainer, app: IMidwayApplication) {
|
|
|
// 初始化es
|
|
|
const esService = await container.getAsync(ElasticsearchService);
|
|
|
- // await esService.preparMapping();
|
|
|
- // await container.getAsync(DBService);
|
|
|
+ await esService.preparMapping();
|
|
|
+ await container.getAsync(DBService);
|
|
|
}
|
|
|
}
|