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,6 +49,7 @@ module.exports.create = function (xconfx, apiFactories, apiDeps) {
})) { })) {
return true; return true;
} }
if (clientUrih === ('api.' + xconfx.setupDomain) && 'org.oauth3.consumer' === pkgId) { if (clientUrih === ('api.' + xconfx.setupDomain) && 'org.oauth3.consumer' === pkgId) {
// fallthrough // fallthrough
return true; return true;
@ -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