aboutsummaryrefslogtreecommitdiffstats
path: root/modules/convert/convert.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/convert/convert.go')
-rw-r--r--modules/convert/convert.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/convert/convert.go b/modules/convert/convert.go
index c8cb23261e..c62b4303ed 100644
--- a/modules/convert/convert.go
+++ b/modules/convert/convert.go
@@ -257,7 +257,7 @@ func ToHook(repoLink string, w *webhook.Webhook) *api.Hook {
return &api.Hook{
ID: w.ID,
- Type: string(w.Type),
+ Type: w.Type,
URL: fmt.Sprintf("%s/settings/hooks/%d", repoLink, w.ID),
Active: w.IsActive,
Config: config,