aboutsummaryrefslogtreecommitdiff
path: root/internal/route/api
diff options
context:
space:
mode:
Diffstat (limited to 'internal/route/api')
-rw-r--r--internal/route/api/v1/convert/convert.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/route/api/v1/convert/convert.go b/internal/route/api/v1/convert/convert.go
index 027bebbc..a374efc1 100644
--- a/internal/route/api/v1/convert/convert.go
+++ b/internal/route/api/v1/convert/convert.go
@@ -75,7 +75,7 @@ func ToHook(repoLink string, w *db.Webhook) *api.Hook {
"content_type": w.ContentType.Name(),
}
if w.HookTaskType == db.SLACK {
- s := w.GetSlackHook()
+ s := w.SlackMeta()
config["channel"] = s.Channel
config["username"] = s.Username
config["icon_url"] = s.IconURL