fix: don't delete flag *objects* because flags can share hashes

This commit is contained in:
Sam 2023-05-29 02:19:00 +02:00
parent 67d275f15b
commit 21cce9c5af
No known key found for this signature in database
GPG Key ID: B4EF20DDE721CAA1
1 changed files with 0 additions and 6 deletions

View File

@ -268,12 +268,6 @@ func (db *DB) DeleteFlag(ctx context.Context, flagID xid.ID, hash string) error
if err != nil {
return errors.Wrap(err, "executing query")
}
err = db.minio.RemoveObject(ctx, db.minioBucket, "/flags/"+flagID.String()+"/"+hash+".webp", minio.RemoveObjectOptions{})
if err != nil {
return errors.Wrap(err, "deleting flag")
}
return nil
}