Commit 3846e184 authored by nanahira's avatar nanahira

fix

parent 68f50fcb
...@@ -63,14 +63,15 @@ export class Registrar<T = any> { ...@@ -63,14 +63,15 @@ export class Registrar<T = any> {
const _key = key as string; const _key = key as string;
let data = reflector.get(KoishiDoRegister, this.obj, _key); let data = reflector.get(KoishiDoRegister, this.obj, _key);
if (!data) return; if (!data) return;
data = renderObject(data, { ...this.view, ...extraView }); const totalView = { ...this.view, ...extraView };
data = renderObject(data, totalView);
const result = DoRegister.registry.execute( const result = DoRegister.registry.execute(
data, data,
ctx, ctx,
this.obj, this.obj,
_key, _key,
this.alternativeObject, this.alternativeObject,
this.view, totalView,
); );
return { ...data, key: key as keyof T & string, result }; return { ...data, key: key as keyof T & string, result };
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment