Browse Source

hot fix

pull/11/head
Jeffery Russell 5 years ago
parent
commit
13662bc755
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      routes/api.js

+ 2
- 2
routes/api.js View File

@ -61,14 +61,14 @@ routes.get('/*', (request, result) =>
result.setHeader('Content-Type', 'application/json');
queryGitHubAPI(gitHubAPIURL).then(function(data)
{
if(data.hasOwnProperty("id"))
if(data.hasOwnProperty("id") || data[0].hasOwnProperty("id"))
{
result.write(JSON.stringify(data));
}
result.end();
}).catch(function(error)
{
if(error.hasOwnProperty("id"))
if(error.hasOwnProperty("id") || error[0].hasOwnProperty("id"))
{
result.write(JSON.stringify(error));
}

Loading…
Cancel
Save