diff --git a/repositories/posts_repository.go b/repositories/posts_repository.go index 77e625f..e846a00 100644 --- a/repositories/posts_repository.go +++ b/repositories/posts_repository.go @@ -276,6 +276,6 @@ func (r *PostsRepository) BumpThreadInTx(tx pgx.Tx, id int) error { WHERE id = $1 ` - _, err := tx.Query(context.TODO(), sql, id) + _, err := tx.Exec(context.TODO(), sql, id) return err }