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);
 | 
					                            trace.push(node);
 | 
				
			||||||
                        }
 | 
					                        }
 | 
				
			||||||
                        if (row.timestamps) {
 | 
					                        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;
 | 
					                        got.trace = row.trace;
 | 
				
			||||||
                        this.requestMatching(trace, timestamps, params, afterRequest);
 | 
					                        this.requestMatching(trace, timestamps, params, afterRequest);
 | 
				
			||||||
 | 
				
			|||||||
@ -110,7 +110,7 @@ module.exports = function () {
 | 
				
			|||||||
        params.coordinates = encodeWaypoints(waypoints);
 | 
					        params.coordinates = encodeWaypoints(waypoints);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (timestamps.length) {
 | 
					        if (timestamps.length) {
 | 
				
			||||||
            params.timestamps = timestamps.join(',');
 | 
					            params.timestamps = timestamps.join(';');
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        return this.requestPath('match', params, callback);
 | 
					        return this.requestPath('match', params, callback);
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user