Skip to content

Commit

Permalink
remove misused bun.Ident
Browse files Browse the repository at this point in the history
  • Loading branch information
tsmethurst committed Sep 29, 2022
1 parent 00d3885 commit 0ed0aad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/db/bundb/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ func (s *statusDB) DeleteStatusByID(ctx context.Context, id string) db.Error {
if _, err := tx.
NewDelete().
Model(&gtsmodel.StatusToEmoji{}).
Where("status_id = ?", bun.Ident(id)).
Where("status_id = ?", id).
Exec(ctx); err != nil {
return err
}
Expand All @@ -242,7 +242,7 @@ func (s *statusDB) DeleteStatusByID(ctx context.Context, id string) db.Error {
if _, err := tx.
NewDelete().
Model(&gtsmodel.StatusToTag{}).
Where("status_id = ?", bun.Ident(id)).
Where("status_id = ?", id).
Exec(ctx); err != nil {
return err
}
Expand Down

0 comments on commit 0ed0aad

Please sign in to comment.