fix promise, and whitespace
This commit is contained in:
		
							parent
							
								
									bc970b4ffe
								
							
						
					
					
						commit
						ebcfac72e7
					
				
							
								
								
									
										18
									
								
								lib/apis.js
									
									
									
									
									
								
							
							
						
						
									
										18
									
								
								lib/apis.js
									
									
									
									
									
								
							| @ -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
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user