Added logo.svg remove when uploading

This commit is contained in:
Arminas 2023-02-21 14:25:43 +02:00 committed by GitHub
parent 830d5a1c59
commit 7d3d3415ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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")