diff --git a/daemon/package.json b/daemon/package.json index 753ff33..e8ff70a 100644 --- a/daemon/package.json +++ b/daemon/package.json @@ -1,6 +1,6 @@ { "name": "coingraph-daemon", - "version": "1.1.3", + "version": "1.1.4", "author": "derogab", "description": "A daemon for coingraph", "license": "MIT", diff --git a/daemon/routes/socket.js b/daemon/routes/socket.js index 81a9410..61a61f7 100644 --- a/daemon/routes/socket.js +++ b/daemon/routes/socket.js @@ -37,7 +37,7 @@ module.exports = function(db, io, app, config) { var historical_data = db.get('cryptocurrencies').find(cryptocurrency).value().data; - io.emit('historical-data', fix(cryptocurrency, historical_data)); + client.emit('historical-data', fix(cryptocurrency, historical_data)); } diff --git a/package.json b/package.json index 6931299..85801d0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "coingraph", - "version": "1.1.3", + "version": "1.1.4", "author": "derogab", "description": "A real-time graph for cryptocurrencies", "license": "MIT",