Ver Fonte

add egress domain model to egress host update

abhishek9686 há 3 semanas atrás
pai
commit
4d3ceffc95
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      controllers/hosts.go

+ 1 - 1
controllers/hosts.go

@@ -385,7 +385,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))