Skip to content

Commit

Permalink
updated sample app and removed console.log from taxrate
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan Walsh committed Mar 8, 2017
1 parent 535e158 commit 8a51f1f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
1 change: 0 additions & 1 deletion lib/entities/taxrate.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
13 changes: 7 additions & 6 deletions sample_app/sample_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -19,7 +17,7 @@ function getXeroApp(session) {
}
}

return new xero.PublicApplication(publicConfigFile, config);
return new xero.PublicApplication(config);
}

var app = express();
Expand Down Expand Up @@ -142,6 +140,9 @@ app.get('/organisations', function(req, res) {
}
});
})
.catch(function(err) {
console.log(err);
})
})
});

Expand Down

0 comments on commit 8a51f1f

Please sign in to comment.