Преглед изворни кода

add egress domain model to egress host update

abhishek9686 пре 3 недеља
родитељ
комит
6dd663caf8
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      controllers/hosts.go

+ 1 - 1
controllers/hosts.go

@@ -394,7 +394,7 @@ func hostUpdateFallback(w http.ResponseWriter, r *http.Request) {
 		mq.UpdateMetricsFallBack(hostUpdate.Node.ID.String(), hostUpdate.NewMetrics)
 	case models.EgressUpdate:
 		fmt.Println("=====> Recv Egress Update: ", hostUpdate.Node.EgressGatewayRanges)
-		e := schema.Egress{ID: hostUpdate.EgressID}
+		e := schema.Egress{ID: hostUpdate.EgressDomain.ID}
 		err = e.Get(db.WithContext(r.Context()))
 		if err != nil {
 			logic.ReturnErrorResponse(w, r, logic.FormatError(err, logic.BadReq))