From 875a4954c556979c88206288f436afcad1734ab4 Mon Sep 17 00:00:00 2001 From: Alexander Block Date: Wed, 23 Oct 2024 15:44:41 +0200 Subject: [PATCH] fix: Parse note IDs as int64 --- controllers/webgit/github.go | 2 +- controllers/webgit/gitlab.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/webgit/github.go b/controllers/webgit/github.go index ac8816b..8c1bd9e 100644 --- a/controllers/webgit/github.go +++ b/controllers/webgit/github.go @@ -163,7 +163,7 @@ func (g *GithubMergeRequest) CreateMergeRequestNote(body string) (Note, error) { } func (g *GithubMergeRequest) GetMergeRequestNote(noteId string) (Note, error) { - noteId2, err := strconv.ParseInt(noteId, 10, 32) + noteId2, err := strconv.ParseInt(noteId, 10, 64) if err != nil { return nil, err } diff --git a/controllers/webgit/gitlab.go b/controllers/webgit/gitlab.go index eea0146..20e5bdb 100644 --- a/controllers/webgit/gitlab.go +++ b/controllers/webgit/gitlab.go @@ -91,7 +91,7 @@ func (g *GitlabMergeRequest) CreateMergeRequestNote(body string) (Note, error) { } func (g *GitlabMergeRequest) GetMergeRequestNote(noteId string) (Note, error) { - noteId2, err := strconv.ParseInt(noteId, 10, 32) + noteId2, err := strconv.ParseInt(noteId, 10, 64) if err != nil { return nil, err }