Skip to content

Commit

Permalink
fix: Parse note IDs as int64
Browse files Browse the repository at this point in the history
  • Loading branch information
codablock committed Oct 23, 2024
1 parent 0a731ad commit 875a495
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion controllers/webgit/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion controllers/webgit/gitlab.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 875a495

Please sign in to comment.