fixing extclient controller

This commit is contained in:
root
2021-05-20 02:09:48 +00:00
parent 47f5dc95dc
commit c5c38f0856
2 changed files with 4 additions and 4 deletions

View File

@@ -68,7 +68,7 @@ func GetExtPeersList(networkName string, macaddress string) ([]models.ExtPeersRe
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
//Get all nodes in the relevant network which are NOT in pending state
filter := bson.M{"network": networkName, "gatewayid": macaddress}
filter := bson.M{"network": networkName, "ingressgatewayid": macaddress}
cur, err := collection.Find(ctx, filter)
if err != nil {