tech(notifications): remove async webhook

This commit is contained in:
bergquist 2016-11-08 08:06:42 +01:00
parent 66f257e382
commit 5bbdd99d35
2 changed files with 0 additions and 21 deletions

View File

@ -16,14 +16,6 @@ type SendEmailCommandSync struct {
SendEmailCommand
}
type SendWebhook struct {
Url string
User string
Password string
Body string
HttpMethod string
}
type SendWebhookSync struct {
Url string
User string

View File

@ -31,7 +31,6 @@ func Init() error {
bus.AddCtxHandler("email", sendEmailCommandHandlerSync)
bus.AddHandler("webhook", sendWebhook)
bus.AddCtxHandler("webhook", SendWebhookSync)
bus.AddEventListener(signUpStartedHandler)
@ -69,18 +68,6 @@ func SendWebhookSync(ctx context.Context, cmd *m.SendWebhookSync) error {
})
}
func sendWebhook(cmd *m.SendWebhook) error {
addToWebhookQueue(&Webhook{
Url: cmd.Url,
User: cmd.User,
Password: cmd.Password,
Body: cmd.Body,
HttpMethod: cmd.HttpMethod,
})
return nil
}
func subjectTemplateFunc(obj map[string]interface{}, value string) string {
obj["value"] = value
return ""