Browse Source

fixes merge error

bergquist 7 years ago
parent
commit
a90bba859a
1 changed files with 3 additions and 2 deletions
  1. 3 2
      pkg/services/alerting/notifiers/googlechat.go

+ 3 - 2
pkg/services/alerting/notifiers/googlechat.go

@@ -3,12 +3,13 @@ package notifiers
 import (
 import (
 	"encoding/json"
 	"encoding/json"
 	"fmt"
 	"fmt"
+	"time"
+
 	"github.com/grafana/grafana/pkg/bus"
 	"github.com/grafana/grafana/pkg/bus"
 	"github.com/grafana/grafana/pkg/log"
 	"github.com/grafana/grafana/pkg/log"
 	m "github.com/grafana/grafana/pkg/models"
 	m "github.com/grafana/grafana/pkg/models"
 	"github.com/grafana/grafana/pkg/services/alerting"
 	"github.com/grafana/grafana/pkg/services/alerting"
 	"github.com/grafana/grafana/pkg/setting"
 	"github.com/grafana/grafana/pkg/setting"
-	"time"
 )
 )
 
 
 func init() {
 func init() {
@@ -35,7 +36,7 @@ func NewGoogleChatNotifier(model *m.AlertNotification) (alerting.Notifier, error
 	}
 	}
 
 
 	return &GoogleChatNotifier{
 	return &GoogleChatNotifier{
-		NotifierBase: NewNotifierBase(model.Id, model.IsDefault, model.Name, model.Type, model.Settings),
+		NotifierBase: NewNotifierBase(model),
 		Url:          url,
 		Url:          url,
 		log:          log.New("alerting.notifier.googlechat"),
 		log:          log.New("alerting.notifier.googlechat"),
 	}, nil
 	}, nil