From 7d3d3415ec89eee32e625f88e4c6b56fd8289184 Mon Sep 17 00:00:00 2001 From: Arminas Date: Tue, 21 Feb 2023 14:25:43 +0200 Subject: [PATCH] Added logo.svg remove when uploading --- handler/routes.go | 1 + 1 file changed, 1 insertion(+) diff --git a/handler/routes.go b/handler/routes.go index 819d683..ccfdd4f 100644 --- a/handler/routes.go +++ b/handler/routes.go @@ -927,6 +927,7 @@ func UpdateBranding(db store.IStore) echo.HandlerFunc { } if logo_exist { + os.Remove(path.Join(db.GetPath(), "branding") + "/logo.svg") os.Remove(path.Join(db.GetPath(), "branding") + "/logo.png") os.Remove(path.Join(db.GetPath(), "branding") + "/logo.jpg") os.Remove(path.Join(db.GetPath(), "branding") + "/logo.jpeg")