From 80111d5ada7ce033dcf793c767f037def5ae6a22 Mon Sep 17 00:00:00 2001 From: MiaoWoo Date: Fri, 25 Sep 2020 10:12:28 +0800 Subject: [PATCH] fix: config inject error Signed-off-by: MiaoWoo --- packages/plugin/src/decorators.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/plugin/src/decorators.ts b/packages/plugin/src/decorators.ts index 6ced8904..1fc3d6c4 100644 --- a/packages/plugin/src/decorators.ts +++ b/packages/plugin/src/decorators.ts @@ -81,7 +81,6 @@ export function config(metadata: interfaces.ConfigMetadata = {}) { let previousMetadata = getPluginConfigMetadata(target) previousMetadata.set(metadata.name, metadata) Reflect.defineMetadata(METADATA_KEY.config, previousMetadata, target.constructor) - Reflect.defineMetadata(METADATA_KEY.config, metadata, target[key]) } }