From a18ccb635d467e8f4d19975ec51b6955cb1c8551 Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Fri, 25 Apr 2025 10:19:30 -0700 Subject: [PATCH] remove unused settings, remove comment --- client/src/Features/Settings/settingsSlice.js | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/client/src/Features/Settings/settingsSlice.js b/client/src/Features/Settings/settingsSlice.js index d158a4ae4..614ab7159 100644 --- a/client/src/Features/Settings/settingsSlice.js +++ b/client/src/Features/Settings/settingsSlice.js @@ -30,26 +30,9 @@ export const getAppSettings = createAsyncThunk( export const updateAppSettings = createAsyncThunk( "settings/updateSettings", async ({ settings }, thunkApi) => { - // The reason for commenting is that, previously, we had the flexibility to set the API base. - // However, now this could lead to an issue where it gets set to undefined. - // networkService.setBaseUrl(settings.apiBaseUrl); try { const parsedSettings = { - apiBaseUrl: settings.apiBaseUrl, - logLevel: settings.logLevel, language: settings.language, - clientHost: settings.clientHost, - jwtSecret: settings.jwtSecret, - dbType: settings.dbType, - dbConnectionString: settings.dbConnectionString, - redisHost: settings.redisHost, - redisPort: settings.redisPort, - jwtTTL: settings.jwtTTL, - pagespeedApiKey: settings.pagespeedApiKey, - systemEmailHost: settings.systemEmailHost, - systemEmailPort: settings.systemEmailPort, - systemEmailAddress: settings.systemEmailAddress, - systemEmailPassword: settings.systemEmailPassword, }; const res = await networkService.updateAppSettings({ settings: parsedSettings }); return res.data;