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

change cleaning condition

parent 74894cc5
No related branches found
No related tags found
No related merge requests found
...@@ -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