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
1 changed files with 1 additions and 0 deletions

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