summaryrefslogtreecommitdiff
path: root/internal/db/bundb
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2022-09-29 12:33:33 +0200
committerLibravatar GitHub <noreply@github.com>2022-09-29 12:33:33 +0200
commit97b747b452209f474f4fd7a07f4c45009aabe509 (patch)
tree8332ee02c4c382e825d016a5083728ea7b1899e1 /internal/db/bundb
parent[feature] Add `meta robots` tag; allow robots to index profile card if user i... (diff)
downloadgotosocial-97b747b452209f474f4fd7a07f4c45009aabe509.tar.xz
[bugfix] Fix incorrect use of bun.Ident (#866)
* remove misused bun.Ident * test status delete via API * fix test
Diffstat (limited to 'internal/db/bundb')
-rw-r--r--internal/db/bundb/status.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/db/bundb/status.go b/internal/db/bundb/status.go
index 59417afe4..2d920ee3f 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(&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
}