Skip to content

Commit

Permalink
fix: background frontend settings should not crash tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ivarconr committed Dec 14, 2022
1 parent 883679d commit 2563bbf
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/lib/services/proxy-service.ts
Expand Up @@ -177,12 +177,14 @@ export class ProxyService {
}

private async fetchFrontendSettings(): Promise<FrontendSettings> {
this.cachedFrontendSettings = await this.services.settingService.get(
frontendSettingsKey,
{
frontendApiOrigins: this.config.frontendApiOrigins,
},
);
try {
this.cachedFrontendSettings =
await this.services.settingService.get(frontendSettingsKey, {
frontendApiOrigins: this.config.frontendApiOrigins,
});
} catch (error) {
this.logger.debug('Unable to fetch frontend settings');
}
return this.cachedFrontendSettings;
}

Expand Down

0 comments on commit 2563bbf

Please sign in to comment.