diff --git a/lib/entities/taxrate.js b/lib/entities/taxrate.js index 328f8928..84b5f7e9 100644 --- a/lib/entities/taxrate.js +++ b/lib/entities/taxrate.js @@ -35,7 +35,6 @@ var TaxRate = Entity.extend(TaxRateSchema, { if (obj.TaxComponents) { this.extractArray(obj.TaxComponents.TaxComponent, this.TaxComponents); } - console.log(this.TaxComponents.TaxComponent); return this; }, toXml: function() { diff --git a/sample_app/sample_app.js b/sample_app/sample_app.js index f046bb40..a5767ad3 100644 --- a/sample_app/sample_app.js +++ b/sample_app/sample_app.js @@ -4,13 +4,11 @@ var express = require('express'), LRU = require('lru-cache'), fs = require('fs'), nodemailer = require('nodemailer'), - publicConfigFile = "../public_app_config.json"; + metaConfig = require('../testing_config.json'); function getXeroApp(session) { - var config = { - authorizeCallbackUrl: 'http://localhost:3100/access', - runscopeBucketId: 'ei635hnc0fem' - }; + var APPTYPE = metaConfig.APPTYPE; + var config = metaConfig[APPTYPE.toLowerCase()]; if (session) { if (session.oauthAccessToken && session.oauthAccessSecret) { @@ -19,7 +17,7 @@ function getXeroApp(session) { } } - return new xero.PublicApplication(publicConfigFile, config); + return new xero.PublicApplication(config); } var app = express(); @@ -142,6 +140,9 @@ app.get('/organisations', function(req, res) { } }); }) + .catch(function(err) { + console.log(err); + }) }) });