Skip to content

Commit

Permalink
fix: github connection.enableGraphql should be default to true (#7711)
Browse files Browse the repository at this point in the history
  • Loading branch information
klesh authored and action_bot committed Jul 9, 2024
1 parent f589c27 commit 08895c5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions backend/plugins/github/api/connection_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ func TestConnection(input *plugin.ApiResourceInput) (*plugin.ApiResourceOutput,
// @Failure 500 {string} errcode.Error "Internal Error"
// @Router /plugins/github/connections [POST]
func PostConnections(input *plugin.ApiResourceInput) (*plugin.ApiResourceOutput, errors.Error) {
if _, ok := input.Body["enableGraphql"]; !ok {
input.Body["enableGraphql"] = true
}
return dsHelper.ConnApi.Post(input)
}

Expand Down

0 comments on commit 08895c5

Please sign in to comment.