From 6bf809ca8aa17d8738683fa03a9e43f19e84ea66 Mon Sep 17 00:00:00 2001 From: waiting <1661926154@qq.com> Date: Fri, 4 Jun 2021 22:01:58 +0800 Subject: [PATCH] chore: clean --- packages/midway-component-kmore/src/configuration.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/midway-component-kmore/src/configuration.ts b/packages/midway-component-kmore/src/configuration.ts index 78ab1ee0a..1d31f7a2f 100644 --- a/packages/midway-component-kmore/src/configuration.ts +++ b/packages/midway-component-kmore/src/configuration.ts @@ -10,10 +10,7 @@ import { Logger, } from '@midwayjs/decorator' import { ILogger } from '@midwayjs/logger' -import { - IMidwayWebApplication, - IMidwayWebContext, -} from '@midwayjs/web' +import { IMidwayWebApplication } from '@midwayjs/web' import { DbManager } from './lib/db-man' import { KmoreComponentConfig } from './lib/types' @@ -27,9 +24,9 @@ const namespace = 'kmore' }) export class AutoConfiguration { @App() readonly app: IMidwayWebApplication + @Logger() private readonly logger: ILogger - @Inject() readonly ctx: IMidwayWebContext @Inject() readonly dbManager: DbManager @Config('kmore') readonly kmoreConfig: KmoreComponentConfig