Skip to content

Commit

Permalink
fix: fix DataSourceQualifier
Browse files Browse the repository at this point in the history
  • Loading branch information
killagu committed Sep 29, 2024
1 parent 081b4eb commit 10846b1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions core/dal-decorator/src/decorator/DataSourceQualifier.ts
Original file line number Diff line number Diff line change
@@ -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);
};
}

0 comments on commit 10846b1

Please sign in to comment.