From a800c189a3cfc776f7722e75a359e97a7f3393bc Mon Sep 17 00:00:00 2001 From: tmarshall Date: Fri, 21 Mar 2014 12:10:00 -0700 Subject: [PATCH] updated magento api to actually work! --- package.json | 2 +- src/magento.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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(); });