diff --git a/src/controller/admin/management/settingController.ts b/src/controller/admin/management/settingController.ts index 10d5dea..1a82b9a 100644 --- a/src/controller/admin/management/settingController.ts +++ b/src/controller/admin/management/settingController.ts @@ -70,13 +70,13 @@ export async function setSettings(req: Request, res: Re export async function setImages(req: Request, res: Response): Promise { if (req.files && !Array.isArray(req.files) && req.files.icon) { await SettingHelper.setSetting("club.icon", "configured"); - } else { + } else if (req.body["club.icon"] != "keep") { await SettingHelper.resetSetting("club.icon"); } if (req.files && !Array.isArray(req.files) && req.files.logo) { await SettingHelper.setSetting("club.logo", "configured"); - } else { + } else if (req.body["club.logo"] != "keep") { await SettingHelper.resetSetting("club.logo"); } diff --git a/src/controller/publicController.ts b/src/controller/publicController.ts index b608b3b..e48c008 100644 --- a/src/controller/publicController.ts +++ b/src/controller/publicController.ts @@ -130,10 +130,10 @@ export async function getApplicationLogo(req: Request, res: Response): Promise