Fix timestamp handling, restores testbot/matching test
This commit is contained in:
parent
c7f3645fe2
commit
08cb6d1f63
@ -158,7 +158,7 @@ module.exports = function () {
|
||||
trace.push(node);
|
||||
}
|
||||
if (row.timestamps) {
|
||||
timestamps = row.timestamps.split(' ').filter(s => !!s).map(t => parseInt(t));
|
||||
timestamps = row.timestamps.split(' ').filter(s => !!s).map(t => parseInt(t, 10));
|
||||
}
|
||||
got.trace = row.trace;
|
||||
this.requestMatching(trace, timestamps, params, afterRequest);
|
||||
|
@ -110,7 +110,7 @@ module.exports = function () {
|
||||
params.coordinates = encodeWaypoints(waypoints);
|
||||
|
||||
if (timestamps.length) {
|
||||
params.timestamps = timestamps.join(',');
|
||||
params.timestamps = timestamps.join(';');
|
||||
}
|
||||
|
||||
return this.requestPath('match', params, callback);
|
||||
|
Loading…
Reference in New Issue
Block a user