diff --git a/package.json b/package.json index e116569..2a41632 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "magento", "author": "Tim Marshall ", "description": "Magento SOAP API wrapper for Node.js", - "version": "0.0.1", + "version": "0.0.2", "main": "./src/magento", "contributors": [ { diff --git a/src/magento.js b/src/magento.js index 41f2d7c..a147e62 100644 --- a/src/magento.js +++ b/src/magento.js @@ -174,8 +174,8 @@ Magento.prototype.login = function(callback) { callback(new MagentoError('An error occurred at login', err)); return; } - - this.sessionId = sessId; + + self.sessionId = sessId; callback(); });