Skip to content

Commit 0c08e8b

Browse files
authored
Re-decorate all runtime endpoints (#4532)
1 parent c2549ec commit 0c08e8b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/api/src/base/Decorate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
213213
} as ApiDecoration<ApiType>;
214214
}
215215

216-
if (!registry.decoratedMeta) {
216+
if (fromEmpty || !registry.decoratedMeta) {
217217
registry.decoratedMeta = expandMetadata(registry.registry, registry.metadata);
218218
}
219219

packages/api/src/base/Init.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ export abstract class Init<ApiType extends ApiTypes> extends Decorate<ApiType> {
286286
thisRegistry.specVersion = version.specVersion;
287287

288288
this._initRegistry(this.registry, this._runtimeChain as Text, version, metadata);
289-
this._injectMetadata(thisRegistry, false);
289+
this._injectMetadata(thisRegistry, true);
290290

291291
return true;
292292
})

0 commit comments

Comments
 (0)