update object storage guild flush
@@ -31,8 +31,10 @@ func FlushAllGuildData(db database.Database, st storage.Storage, guildID string)
mErr.Append(st.DeleteObject(static.StorageBucketBackups, b.FileID))
}
for _, r := range reports {
+ if r.AttachmehtURL != "" {
mErr.Append(st.DeleteObject(static.StorageBucketImages, r.AttachmehtURL))
}
+ }
return mErr.Nillify()
}
