Commit 617cc696 authored by project's avatar project

--no commit message

--no commit message
parent fe4ebe6e
...@@ -59,8 +59,8 @@ function execute_function(context,response){ ...@@ -59,8 +59,8 @@ function execute_function(context,response){
}, function(err) { }, function(err) {
if( err ) { if( err ) {
//response.error(err); response.error(err);
response.reject(); //response.reject();
} else { } else {
//console.log(JSON.stringify(result)); //console.log(JSON.stringify(result));
response.success(result, output_type); response.success(result, output_type);
...@@ -79,6 +79,7 @@ function getData(url, lts, callback) { ...@@ -79,6 +79,7 @@ function getData(url, lts, callback) {
vals.push(data); vals.push(data);
beforeDateCheck(cts, lts); beforeDateCheck(cts, lts);
} }
else callback(err);
function beforeDateCheck(ct, lt){ function beforeDateCheck(ct, lt){
if (lt.isBefore(ct, 'days')) { if (lt.isBefore(ct, 'days')) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment