diff --git a/src/lib/core/MRPConfig.ts b/src/lib/core/MRPConfig.ts index 39f2feb..a69b263 100644 --- a/src/lib/core/MRPConfig.ts +++ b/src/lib/core/MRPConfig.ts @@ -27,7 +27,8 @@ export class MRPConfig extends MRPData { async init(){ this.begin() console.log('fetching config') - let result = await this.fetch() + let result: AppConfig | null = null; + result = await this.fetch() console.log('fetched config', result) if(this.event == null) result = this.create() this.event = result as AppConfig diff --git a/src/lib/core/MRPNostr.ts b/src/lib/core/MRPNostr.ts index 9315783..f1db593 100644 --- a/src/lib/core/MRPNostr.ts +++ b/src/lib/core/MRPNostr.ts @@ -37,7 +37,7 @@ export class MRPNostr { } public async init(){ - this._relay.init() + await this._relay.init() this.monitors.init() }