fix(core): Ensure nodes post-processors run in the correct order (#7500)

Fixes #7497
This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2023-10-25 13:59:38 +02:00
committed by GitHub
parent c47d27dd6d
commit 6f45298d3d
4 changed files with 38 additions and 37 deletions

View File

@@ -46,6 +46,9 @@ export class FrontendService {
private readonly mailer: UserManagementMailer,
private readonly instanceSettings: InstanceSettings,
) {
loadNodesAndCredentials.addPostProcessor(async () => this.generateTypes());
void this.generateTypes();
this.initSettings();
if (config.getEnv('nodes.communityPackages.enabled')) {