From 4b38765d0f751010adaca4f0aff3b9dc51ffe1b9 Mon Sep 17 00:00:00 2001 From: noah Date: Tue, 1 Mar 2022 19:35:44 +0900 Subject: [PATCH] Fix the bug of the InsecureSSL field --- internal/interactor/repo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/interactor/repo.go b/internal/interactor/repo.go index 856f0c86..00277681 100644 --- a/internal/interactor/repo.go +++ b/internal/interactor/repo.go @@ -63,7 +63,7 @@ type ( func (i *RepoInteractor) ActivateRepo(ctx context.Context, u *ent.User, r *ent.Repo) (*ent.Repo, error) { hid, err := i.scm.CreateWebhook(ctx, u, r, &extent.WebhookConfig{ URL: i.WebhookURL, - InsecureSSL: i.WebhookSSL, + InsecureSSL: !i.WebhookSSL, Secret: i.WebhookSecret, }) if err != nil {