mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-09-28 22:31:54 +00:00
remove misused bun.Ident
This commit is contained in:
parent
00d38855d4
commit
0ed0aadd38
1 changed files with 2 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…
Reference in a new issue