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:
parent
e4035d37d4
commit
e01167676c
@ -177,12 +177,14 @@ export class ProxyService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private async fetchFrontendSettings(): Promise<FrontendSettings> {
|
private async fetchFrontendSettings(): Promise<FrontendSettings> {
|
||||||
this.cachedFrontendSettings = await this.services.settingService.get(
|
try {
|
||||||
frontendSettingsKey,
|
this.cachedFrontendSettings =
|
||||||
{
|
await this.services.settingService.get(frontendSettingsKey, {
|
||||||
frontendApiOrigins: this.config.frontendApiOrigins,
|
frontendApiOrigins: this.config.frontendApiOrigins,
|
||||||
},
|
});
|
||||||
);
|
} catch (error) {
|
||||||
|
this.logger.debug('Unable to fetch frontend settings');
|
||||||
|
}
|
||||||
return this.cachedFrontendSettings;
|
return this.cachedFrontendSettings;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user