fix promise, and whitespace

This commit is contained in:
AJ ONeal 2017-07-06 23:26:58 +00:00
parent bc970b4ffe
commit ebcfac72e7
1 changed files with 10 additions and 8 deletions

View File

@ -49,12 +49,13 @@ module.exports.create = function (xconfx, apiFactories, apiDeps) {
})) { })) {
return true; return true;
} }
if (clientUrih === ('api.' + xconfx.setupDomain) && 'org.oauth3.consumer' === pkgId) {
// fallthrough if (clientUrih === ('api.' + xconfx.setupDomain) && 'org.oauth3.consumer' === pkgId) {
return true; // fallthrough
} else { return true;
return null; } else {
} return null;
}
}); });
} }
@ -437,7 +438,7 @@ module.exports.create = function (xconfx, apiFactories, apiDeps) {
var Twilio = require('twilio'); var Twilio = require('twilio');
function twilioTel(/*opts*/) { function twilioTel(/*opts*/) {
if (_twilio) { if (_twilio) {
return _twilio; return apiDeps.Promise.resolve(_twilio);
} }
_twilio = new Twilio.RestClient( _twilio = new Twilio.RestClient(
@ -552,7 +553,8 @@ module.exports.create = function (xconfx, apiFactories, apiDeps) {
// //
// Capabilities for APIs // Capabilities for APIs
// //
'mailer@daplie.com': mailgunMail // whichever mailer 'email@daplie.com': mailgunMail // whichever mailer
, 'mailer@daplie.com': mailgunMail // whichever mailer
, 'mailgun@daplie.com': mailgunMail // specifically mailgun , 'mailgun@daplie.com': mailgunMail // specifically mailgun
, 'tel@daplie.com': daplieTel // whichever telephony service , 'tel@daplie.com': daplieTel // whichever telephony service
, 'twilio@daplie.com': twilioTel // specifically twilio , 'twilio@daplie.com': twilioTel // specifically twilio