Commit 1f074488 authored by Michael Auer's avatar Michael Auer
Browse files

fixed bug left from testing

parent d33aba9f
...@@ -182,8 +182,8 @@ class Ohsome2X extends EventEmitter { ...@@ -182,8 +182,8 @@ class Ohsome2X extends EventEmitter {
try { try {
let queryStart = Date.now(); let queryStart = Date.now();
// ohsomeResults = await this.getOhsomeResults(this.config.ohsomeQuery); ohsomeResults = await this.getOhsomeResults(this.config.ohsomeQuery);
ohsomeResults = await Promise.reject({isAxiosError: true, response: {status: 413, statusText:'Payload too large', data:{}, headers:{}}, code: 'ERRTIMEOUT', config:{data:{}}}); // ohsomeResults = await Promise.reject({isAxiosError: true, response: {status: 413, statusText:'Payload too large', data:{}, headers:{}}, code: 'ERRTIMEOUT', config:{data:{}}});
let queryEnd = Date.now(); let queryEnd = Date.now();
let queryDuration = queryEnd - queryStart; //duration in milliseconds let queryDuration = queryEnd - queryStart; //duration in milliseconds
console.log('Query duration (sec)', (queryDuration/1000)); console.log('Query duration (sec)', (queryDuration/1000));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment