From c4ad48137dc4380027e714fd47cc444301932521 Mon Sep 17 00:00:00 2001 From: medcl Date: Sat, 25 Sep 2021 15:27:24 +0800 Subject: [PATCH] update model --- service/alerting/destination.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/service/alerting/destination.go b/service/alerting/destination.go index 7639e31c..9adc2ba5 100644 --- a/service/alerting/destination.go +++ b/service/alerting/destination.go @@ -5,6 +5,7 @@ import ( "fmt" httprouter "infini.sh/framework/core/api/router" "infini.sh/framework/core/elastic" + "infini.sh/framework/core/elastic/model" "infini.sh/framework/core/orm" "infini.sh/framework/core/util" "infini.sh/search-center/model/alerting" @@ -318,7 +319,7 @@ func DeleteDestination(w http.ResponseWriter, req *http.Request, ps httprouter.P } -func getDefaultConfig() *elastic.ElasticsearchConfig{ +func getDefaultConfig() *model.ElasticsearchConfig{ return elastic.GetConfig("default") }