fix: config inject error
Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
parent
9bfaf984c1
commit
498b0ee017
@ -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])
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user