mirror of
https://codeberg.org/pronounscc/pronouns.cc.git
synced 2024-11-20 12:19:52 +01:00
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