mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-02 17:58:11 -06:00
[bugfix] Fix incorrect use of bun.Ident (#866)
* remove misused bun.Ident * test status delete via API * fix test
This commit is contained in:
parent
dd83ad053c
commit
97b747b452
2 changed files with 93 additions and 2 deletions
|
|
@ -233,7 +233,7 @@ func (s *statusDB) DeleteStatusByID(ctx context.Context, id string) db.Error {
|
|||
if _, err := tx.
|
||||
NewDelete().
|
||||
Model(>smodel.StatusToEmoji{}).
|
||||
Where("status_id = ?", bun.Ident(id)).
|
||||
Where("status_id = ?", id).
|
||||
Exec(ctx); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
@ -242,7 +242,7 @@ func (s *statusDB) DeleteStatusByID(ctx context.Context, id string) db.Error {
|
|||
if _, err := tx.
|
||||
NewDelete().
|
||||
Model(>smodel.StatusToTag{}).
|
||||
Where("status_id = ?", bun.Ident(id)).
|
||||
Where("status_id = ?", id).
|
||||
Exec(ctx); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue