diff --git a/package.json b/package.json index 36121e6..cc68d1a 100644 --- a/package.json +++ b/package.json @@ -30,8 +30,8 @@ "recover": "node ./bin/permissions-recover.js" }, "dependencies": { - "adjective-adjective-animal": "*", - "adm-zip": "*", + "adjective-adjective-animal": "1.3.3", + "adm-zip": "0.4.7", "async": "^1.3.x", "body-parser": "^1.13.x", "co": "4.6.x", diff --git a/routes/kibana.js b/routes/kibana.js index 84d80a0..78cd25a 100644 --- a/routes/kibana.js +++ b/routes/kibana.js @@ -388,7 +388,7 @@ var defaultObject = { name: '', gameplayId: '', type_hashCode: 0, - score: 0, + score: 0.01, response: '', type: '', event_hashcode: 0, @@ -400,14 +400,14 @@ var defaultObject = { timestamp: '2000-01-19T11:05:27.772Z', target_hashCode: 0, stored: '2000-01-19T11:05:27.772Z', - progress: 0, - time: 0, + progress: 0.01, + time: 0.01, ext: { - progress: 0, - time: 0, + progress: 0.01, + time: 0.01, location: { - lat: 0, - lon: 0 + lat: 0.01, + lon: 0.01 } } } @@ -1000,7 +1000,7 @@ router.post('/index/:indexTemplate/:indexName', function (req, res) { q: '_id:' + 'object_fields' + versionId }, function (error, response) { - if (response.hits.hits && response.hits.hits.length > 0) { + if (!error && response.hits && response.hits.hits && response.hits.hits.length > 0) { objectfields = response.hits.hits[0]._source; }