diff --git a/.travis.yml b/.travis.yml index 9874243..a3843a2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,7 @@ env: global: - CXX=g++-4.8 - - MONGODB_CONNECTION_STRING=mongodb://52.59.253.77 + - MONGODB_CONNECTION_STRING=mongodb://54.93.147.100 # Do not insert any code under here without making sures it's in publishingtest first language: node_js diff --git a/appveyor.yml b/appveyor.yml index 378b2b6..8a2feb8 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,5 +1,5 @@ environment: - MONGODB_CONNECTION_STRING: mongodb://52.59.253.77 + MONGODB_CONNECTION_STRING: mongodb://54.93.147.100 # Do not insert any code under here without making sures it's in publishingtest first os: diff --git a/package.json b/package.json index f4f61eb..29440dc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "deepstream.io-storage-mongodb", - "version": "1.0.0", + "version": "1.0.1", "description": "A template that can be forked to create new cache and storage connectors for deepstream.io", "main": "src/connector.js", "scripts": { diff --git a/src/transform-data.js b/src/transform-data.js index 2d5920f..2e96975 100644 --- a/src/transform-data.js +++ b/src/transform-data.js @@ -11,6 +11,7 @@ * @returns {Object} data */ module.exports.transformValueForStorage = function ( value ) { + value = JSON.parse( JSON.stringify( value ) ) var data = value._d delete value._d data.__ds = value