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;
}
if (clientUrih === ('api.' + xconfx.setupDomain) && 'org.oauth3.consumer' === pkgId) {
// fallthrough
return true;
} else {
return null;
}
if (clientUrih === ('api.' + xconfx.setupDomain) && 'org.oauth3.consumer' === pkgId) {
// fallthrough
return true;
} else {
return null;
}
});
}
@ -437,7 +438,7 @@ module.exports.create = function (xconfx, apiFactories, apiDeps) {
var Twilio = require('twilio');
function twilioTel(/*opts*/) {
if (_twilio) {
return _twilio;
return apiDeps.Promise.resolve(_twilio);
}
_twilio = new Twilio.RestClient(
@ -552,7 +553,8 @@ module.exports.create = function (xconfx, apiFactories, apiDeps) {
//
// 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
, 'tel@daplie.com': daplieTel // whichever telephony service
, 'twilio@daplie.com': twilioTel // specifically twilio