fix: webhook field changed

This commit is contained in:
yystopf 2022-01-06 11:10:49 +08:00
parent 499734ebf9
commit 7fde1e0e12
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
json.id @webhook.id
json.(@webhook, :id, :http_method, :content_type, :url, :secret, :last_status, :is_active)
json.type @webhook.hook_task_type
json.type @webhook.type
json.create_time Time.at(@webhook.created_unix).strftime("%Y-%m-%d %H:%M:%S")
event = @webhook.events
json.branch_filter event["branch_filter"]