Commit 86dd2096 authored by Yoan VALLET's avatar Yoan VALLET
Browse files

change cleaning condition

parent 74894cc5
......@@ -133,7 +133,7 @@ async function getData(token, idPCE) {
* Return the list of daily data
*/
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')
return false
} else {
......
Supports Markdown
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