From aafbf6b1fee926eccfc353be5160726a63e4a07c Mon Sep 17 00:00:00 2001 From: Yanislav Igonin Date: Thu, 3 Feb 2022 18:28:22 +0200 Subject: [PATCH] fix: BumpThreadInTx method --- repositories/posts_repository.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }