fix: little bugs and refacto debug service

This commit is contained in:
Julien Froidefond
2025-03-06 21:41:24 +01:00
parent 0ca63a1fbd
commit 907e09682b
7 changed files with 84 additions and 67 deletions

View File

@@ -45,6 +45,11 @@ class ServerCacheService {
private async initializeCacheMode(): Promise<void> {
try {
const user = await AuthServerService.getCurrentUser();
if (!user) {
this.setCacheMode("memory");
return;
}
const preferences = await PreferencesService.getPreferences();
this.setCacheMode(preferences.cacheMode);
} catch (error) {