Skip to content
Snippets Groups Projects
Commit 10096fab authored by Yoan VALLET's avatar Yoan VALLET
Browse files

change cleaning condition

parent 7520d247
No related branches found
No related tags found
1 merge request!20Update master branch
...@@ -133,7 +133,7 @@ async function getData(token, idPCE) { ...@@ -133,7 +133,7 @@ async function getData(token, idPCE) {
* Return the list of daily data * Return the list of daily data
*/ */
async function cleanOldData() { async function cleanOldData() {
if(moment().isAfter("2020-12-02")){ if(moment().diff(moment("2020-12-02", "DD/MM/YYYY")) > 0){
log('debug', 'No cleaning to do') log('debug', 'No cleaning to do')
return false return false
} else { } else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment