diff --git a/lib/device/drivers/detection.js b/lib/device/drivers/detection.js index d5dd1ebf..643ea2e6 100644 --- a/lib/device/drivers/detection.js +++ b/lib/device/drivers/detection.js @@ -46,7 +46,7 @@ module.exports = { if (_.has(d, 'facialRecognition')) { o.demographics = _.reduce(d.facialRecognition, function (r, v, k) { // translate from { tag: 'EMOTION', emotion: 'HAPPY' to { emotion: 'happy' } - var tag = v.tag.toLowerCase(); + var tag = v.tag.toString().toLowerCase(); if (_.has(v, tag)) { // simple values r[tag] = v[tag]; @@ -132,4 +132,4 @@ module.exports = { } } -}; \ No newline at end of file +}; diff --git a/package.json b/package.json index e6b2cceb..ec93e11d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "matrix-os", - "version": "0.16.0", + "version": "0.17.1", "description": "Portal to device layer for AdMobilize Matrix devices. Includes global component, npm install -g matrix-cli", "main": "app.js", "repository": "http://github.com/matrix-io/matrix-os", @@ -74,4 +74,4 @@ "engines": { "node": ">=0.12.7 <=6.5" } -} \ No newline at end of file +}