diff --git a/config.js b/config.js index eec40fd..027a9b3 100644 --- a/config.js +++ b/config.js @@ -85,7 +85,7 @@ async function get_tracking(trck_ids){ .then(res => res.json()) .then(res => { var results = []; - for(var rr of resp.dat){ + for(var rr of res.dat){ if(rr.track) results.push({id:rr.no, date:rr.track.z0.a, loc:rr.track.z0.c, status:rr.track.z0.z}); else