typo fixes
This commit is contained in:
parent
7a9ea3fef8
commit
a2dcd45403
|
@ -155,8 +155,8 @@ module.exports.create = function (xconfx, apiFactories, apiDeps) {
|
|||
|
||||
console.log('DEBUG pkgPath', pkgPath);
|
||||
myApp = express();
|
||||
myApp.handlePromise = require('./lib/common').promisableRequest;
|
||||
myApp.handleRejection = require('./lib/common').rejectableRequest;
|
||||
myApp.handlePromise = require('./common').promisableRequest;
|
||||
myApp.handleRejection = require('./common').rejectableRequest;
|
||||
|
||||
var _getOauth3Controllers = pkgDeps.getOauth3Controllers = require('oauthcommon/example-oauthmodels').create(
|
||||
{ sqlite3Sock: xconfx.sqlite3Sock, ipcKey: xconfx.ipcKey }
|
||||
|
@ -243,7 +243,6 @@ module.exports.create = function (xconfx, apiFactories, apiDeps) {
|
|||
Object.defineProperty(req, 'Stripe', {
|
||||
enumerable: true
|
||||
, configurable: false
|
||||
, writable: false
|
||||
, get: function () {
|
||||
_stripe = _stripe || require('stripe')(siteConfig['stripe.com'].live.secret);
|
||||
return _stripe;
|
||||
|
@ -253,7 +252,6 @@ module.exports.create = function (xconfx, apiFactories, apiDeps) {
|
|||
Object.defineProperty(req, 'StripeTest', {
|
||||
enumerable: true
|
||||
, configurable: false
|
||||
, writable: false
|
||||
, get: function () {
|
||||
_stripe_test = _stripe_test || require('stripe')(siteConfig['stripe.com'].test.secret);
|
||||
return _stripe_test;
|
||||
|
@ -263,7 +261,6 @@ module.exports.create = function (xconfx, apiFactories, apiDeps) {
|
|||
Object.defineProperty(req, 'Mandrill', {
|
||||
enumerable: true
|
||||
, configurable: false
|
||||
, writable: false
|
||||
, get: function () {
|
||||
if (!_mandrill) {
|
||||
var Mandrill = require('mandrill-api/mandrill');
|
||||
|
@ -281,7 +278,6 @@ module.exports.create = function (xconfx, apiFactories, apiDeps) {
|
|||
Object.defineProperty(req, 'Mailchimp', {
|
||||
enumerable: true
|
||||
, configurable: false
|
||||
, writable: false
|
||||
, get: function () {
|
||||
var Mailchimp = require('mailchimp-api-v3');
|
||||
_mailchimp = _mailchimp || new Mailchimp(siteConfig['mailchimp.com'].apiKey);
|
||||
|
|
Loading…
Reference in New Issue