Fix timestamp handling, restores testbot/matching test
This commit is contained in:
		
							parent
							
								
									467d93ffff
								
							
						
					
					
						commit
						990ed90a2d
					
				| @ -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