1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-31 00:16:47 +01:00

fix: background frontend settings should not crash tests

This commit is contained in:
Ivar Conradi Østhus 2022-12-14 20:24:47 +01:00
parent e4035d37d4
commit e01167676c
No known key found for this signature in database
GPG Key ID: 14F51E4841AF1DE1

View File

@ -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;
}