From 10846b106655c7b17b7dc4e340f037142815cfeb Mon Sep 17 00:00:00 2001 From: killagu Date: Sun, 29 Sep 2024 15:10:20 +0800 Subject: [PATCH] fix: fix DataSourceQualifier --- core/dal-decorator/src/decorator/DataSourceQualifier.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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); }; }