remove misused bun.Ident

This commit is contained in:
tsmethurst 2022-09-28 22:25:14 +02:00
parent 00d38855d4
commit 0ed0aadd38

View file

@ -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
}
@ -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
}