diff --git a/internal/db/bundb/status.go b/internal/db/bundb/status.go index 59417afe4f..2d920ee3f7 100644 --- a/internal/db/bundb/status.go +++ b/internal/db/bundb/status.go @@ -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 }