Skip to content

Commit

Permalink
Merge pull request #68 from actiontech/issuse-1024
Browse files Browse the repository at this point in the history
fix: testing webhook availability
  • Loading branch information
LordofAvernus authored Oct 23, 2023
2 parents 5a0f04c + 130b841 commit e9fac51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/dms/biz/notify_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -440,8 +440,8 @@ func (d *WebHookConfigurationUsecase) TestWebHookConfiguration(ctx context.Conte
if !webhookC.Enable {
return fmt.Errorf("webhook notice is not enabled")
}
// TODO 测试webhook配置可用性
return err

return d.webhookSendRequest(ctx, "hello")
}

func (d *WebHookConfigurationUsecase) SendWebHookMessage(ctx context.Context, triggerEventType string /*TODO validate TriggerEventType*/, message string) error {
Expand Down

0 comments on commit e9fac51

Please sign in to comment.