Commit 3846e184 authored by nanahira's avatar nanahira

fix

parent 68f50fcb
......@@ -63,14 +63,15 @@ export class Registrar<T = any> {
const _key = key as string;
let data = reflector.get(KoishiDoRegister, this.obj, _key);
if (!data) return;
data = renderObject(data, { ...this.view, ...extraView });
const totalView = { ...this.view, ...extraView };
data = renderObject(data, totalView);
const result = DoRegister.registry.execute(
data,
ctx,
this.obj,
_key,
this.alternativeObject,
this.view,
totalView,
);
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