node-dogapi icon indicating copy to clipboard operation
node-dogapi copied to clipboard

await returns undefined

Open apank opened this issue 3 years ago • 0 comments

 const now = parseInt(new Date().getTime() / 1000);
  const then = now - 3600; // one hour ago
  const query = '';
  const response = await dogapi.metric.query(then, now, query);
  console.log(`response: ${response}`);
  return response;
};

it returns undefined

apank avatar Mar 29 '21 21:03 apank