diff --git a/core/dal-decorator/src/decorator/DataSourceQualifier.ts b/core/dal-decorator/src/decorator/DataSourceQualifier.ts index 44e50f81..19a4bc3f 100644 --- a/core/dal-decorator/src/decorator/DataSourceQualifier.ts +++ b/core/dal-decorator/src/decorator/DataSourceQualifier.ts @@ -1,10 +1,8 @@ import { DataSourceQualifierAttribute } from '@eggjs/tegg-types'; -import type { EggProtoImplClass } from '@eggjs/tegg-types'; import { QualifierUtil } from '@eggjs/core-decorator'; export function DataSourceQualifier(dataSourceName: string) { return function(target: any, propertyKey: PropertyKey, parameterIndex?: number) { - QualifierUtil.addInjectQualifier(target.constructor as EggProtoImplClass, - propertyKey, parameterIndex, DataSourceQualifierAttribute, dataSourceName); + QualifierUtil.addInjectQualifier(target, propertyKey, parameterIndex, DataSourceQualifierAttribute, dataSourceName); }; }