forked from mirrors/pronouns.cc
fix: don't delete flag *objects* because flags can share hashes
This commit is contained in:
parent
f41d2d0ef1
commit
9f22512afa
1 changed files with 0 additions and 6 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue