fix: rename title -> event_description
This commit is contained in:
@@ -20,8 +20,8 @@ func (p *provider) AddWebhook(ctx context.Context, webhook models.Webhook) (*mod
|
||||
webhook.Key = webhook.ID
|
||||
}
|
||||
webhook.Key = webhook.ID
|
||||
if webhook.Title == "" {
|
||||
webhook.Title = strings.Join(strings.Split(webhook.EventName, "."), " ")
|
||||
if webhook.EventDescription == "" {
|
||||
webhook.EventDescription = strings.Join(strings.Split(webhook.EventName, "."), " ")
|
||||
}
|
||||
// Add timestamp to make event name unique for legacy version
|
||||
webhook.EventName = fmt.Sprintf("%s-%d", webhook.EventName, time.Now().Unix())
|
||||
|
Reference in New Issue
Block a user