mirror of
https://github.com/MailHops/mailhops-node.git
synced 2025-05-16 03:40:17 -07:00
Fixed start stop methods param
This commit is contained in:
parent
14239e568d
commit
da82583dd4
@ -236,7 +236,7 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
getStartHop: function(routeResponse){
|
getStartHop: function(routeResponse){
|
||||||
var route = _.filter(hops.route, function(h){
|
var route = _.filter(routeResponse, function(h){
|
||||||
return ((!!h.lat && !!h.lng) || h.coords);
|
return ((!!h.lat && !!h.lng) || h.coords);
|
||||||
});
|
});
|
||||||
if(route.length)
|
if(route.length)
|
||||||
@ -245,7 +245,7 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
getEndHop: function(routeResponse){
|
getEndHop: function(routeResponse){
|
||||||
var route = _.filter(hops.route, function(h){
|
var route = _.filter(routeResponse, function(h){
|
||||||
return ((!!h.lat && !!h.lng) || h.coords);
|
return ((!!h.lat && !!h.lng) || h.coords);
|
||||||
});
|
});
|
||||||
if(route.length)
|
if(route.length)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user