fix: config inject error
Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
parent
fb7e27af82
commit
80111d5ada
@ -81,7 +81,6 @@ export function config(metadata: interfaces.ConfigMetadata = {}) {
|
|||||||
let previousMetadata = getPluginConfigMetadata(target)
|
let previousMetadata = getPluginConfigMetadata(target)
|
||||||
previousMetadata.set(metadata.name, metadata)
|
previousMetadata.set(metadata.name, metadata)
|
||||||
Reflect.defineMetadata(METADATA_KEY.config, previousMetadata, target.constructor)
|
Reflect.defineMetadata(METADATA_KEY.config, previousMetadata, target.constructor)
|
||||||
Reflect.defineMetadata(METADATA_KEY.config, metadata, target[key])
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user