converted some tabs to spaces
This commit is contained in:
parent
2b4abdb142
commit
86b304a209
32
lib/apis.js
32
lib/apis.js
|
@ -528,24 +528,24 @@ module.exports.create = function (xconfx, apiFactories, apiDeps) {
|
||||||
|
|
||||||
function daplieTel() {
|
function daplieTel() {
|
||||||
return twilioTel().then(function (twilio) {
|
return twilioTel().then(function (twilio) {
|
||||||
function sms(opts) {
|
function sms(opts) {
|
||||||
// opts = { to, from, body }
|
// opts = { to, from, body }
|
||||||
return new apiDeps.Promise(function (resolve, reject) {
|
return new apiDeps.Promise(function (resolve, reject) {
|
||||||
twilio.sendSms(opts, function (err, resp) {
|
twilio.sendSms(opts, function (err, resp) {
|
||||||
if (err) {
|
if (err) {
|
||||||
reject(err);
|
reject(err);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
resolve(resp);
|
resolve(resp);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
sms: sms
|
sms: sms
|
||||||
, mms: function () { throw new Error('MMS Not Implemented'); }
|
, mms: function () { throw new Error('MMS Not Implemented'); }
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -164,7 +164,7 @@ module.exports.create = function (webserver, xconfx, state) {
|
||||||
// Printing all incoming requests for debugging
|
// Printing all incoming requests for debugging
|
||||||
console.log('[worker/log]', req.method, hostname, req.url);
|
console.log('[worker/log]', req.method, hostname, req.url);
|
||||||
|
|
||||||
// logging all the invalid hostnames that come here out of curiousity
|
// logging all the invalid hostnames that come here out of curiousity
|
||||||
if (hostname && !hostsmap[hostname]) {
|
if (hostname && !hostsmap[hostname]) {
|
||||||
hostsmap[hostname] = true;
|
hostsmap[hostname] = true;
|
||||||
require('fs').writeFile(
|
require('fs').writeFile(
|
||||||
|
|
Loading…
Reference in New Issue