mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-26 09:43:31 -06: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.
|
if _, err := tx.
|
||||||
NewDelete().
|
NewDelete().
|
||||||
Model(>smodel.StatusToEmoji{}).
|
Model(>smodel.StatusToEmoji{}).
|
||||||
Where("status_id = ?", bun.Ident(id)).
|
Where("status_id = ?", id).
|
||||||
Exec(ctx); err != nil {
|
Exec(ctx); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
@ -242,7 +242,7 @@ func (s *statusDB) DeleteStatusByID(ctx context.Context, id string) db.Error {
|
||||||
if _, err := tx.
|
if _, err := tx.
|
||||||
NewDelete().
|
NewDelete().
|
||||||
Model(>smodel.StatusToTag{}).
|
Model(>smodel.StatusToTag{}).
|
||||||
Where("status_id = ?", bun.Ident(id)).
|
Where("status_id = ?", id).
|
||||||
Exec(ctx); err != nil {
|
Exec(ctx); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue