From 85fe41f04f7a0f46eef628e3ee0b8ab6664cca40 Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Tue, 9 Jul 2024 15:40:02 +0800 Subject: [PATCH] fix: github connection.enableGraphql should be default to true --- backend/plugins/github/api/connection_api.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/plugins/github/api/connection_api.go b/backend/plugins/github/api/connection_api.go index 570125d2991..a5f0e922ded 100644 --- a/backend/plugins/github/api/connection_api.go +++ b/backend/plugins/github/api/connection_api.go @@ -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) }