From 84a03f6c8e3acb3b5fed5d619111dc4852ef55ca Mon Sep 17 00:00:00 2001 From: Mr Forest Date: Thu, 24 Nov 2022 00:29:15 +0800 Subject: [PATCH] feat: add webhook for add/update org/provider (#1316) --- object/webhook.go | 2 +- web/src/WebhookEditPage.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/object/webhook.go b/object/webhook.go index 806984f1..f4ee55f9 100644 --- a/object/webhook.go +++ b/object/webhook.go @@ -37,7 +37,7 @@ type Webhook struct { Method string `xorm:"varchar(100)" json:"method"` ContentType string `xorm:"varchar(100)" json:"contentType"` Headers []*Header `xorm:"mediumtext" json:"headers"` - Events []string `xorm:"varchar(100)" json:"events"` + Events []string `xorm:"varchar(1000)" json:"events"` IsUserExtended bool `json:"isUserExtended"` IsEnabled bool `json:"isEnabled"` } diff --git a/web/src/WebhookEditPage.js b/web/src/WebhookEditPage.js index d29cac8a..512e12f9 100644 --- a/web/src/WebhookEditPage.js +++ b/web/src/WebhookEditPage.js @@ -244,7 +244,7 @@ class WebhookEditPage extends React.Component { }} > { ( - ["signup", "login", "logout", "update-user"].map((option, index) => { + ["signup", "login", "logout", "add-user", "update-user", "add-organization", "update-organization", "add-provider", "update-provider"].map((option, index) => { return ( );