remove unused settings, remove comment
This commit is contained in:
1 parent
33a2fd2f69
commit
a18ccb635d
1 file changed
-17
@@ -30,26 +30,9 @@ export const getAppSettings = createAsyncThunk(
|
|||||||
export const updateAppSettings = createAsyncThunk(
|
export const updateAppSettings = createAsyncThunk(
|
||||||
"settings/updateSettings",
|
"settings/updateSettings",
|
||||||
async ({ settings }, thunkApi) => {
|
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 {
|
try {
|
||||||
const parsedSettings = {
|
const parsedSettings = {
|
||||||
apiBaseUrl: settings.apiBaseUrl,
|
|
||||||
logLevel: settings.logLevel,
|
|
||||||
language: settings.language,
|
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 });
|
const res = await networkService.updateAppSettings({ settings: parsedSettings });
|
||||||
return res.data;
|
return res.data;
|
||||||
|
|||||||
Reference in new issue
Block a user