Commit 7586306b authored by project's avatar project

--no commit message

--no commit message
parent daf992f6
......@@ -79,7 +79,7 @@ function getData(url, lts, dtype, callback) {
});
beforeDateCheck(cts, lts);
}
else callback(err);
else callback();
function beforeDateCheck(ct, lt){
if (lt.isBefore(ct, 'days')) {
......@@ -95,7 +95,7 @@ function getData(url, lts, dtype, callback) {
});
beforeDateCheck(ct, lt);
}
else callback(err);
else callback();
}).catch((err) => {
callback(err);
});
......
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