diff options
-rw-r--r-- | modules/pdfrotate/pdfrotate.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/pdfrotate/pdfrotate.js b/modules/pdfrotate/pdfrotate.js index a41241d..92f8eb1 100644 --- a/modules/pdfrotate/pdfrotate.js +++ b/modules/pdfrotate/pdfrotate.js @@ -31,8 +31,8 @@ function cleanUpDir(path){ // Clear files older than 30 mins every 30 mins setInterval(function(){ - process.nextTick(cleanUpDir(moddir+"/uploads")); - process.nextTick(cleanUpDir(moddir+"/converted")); + process.nextTick(function(){cleanUpDir(moddir+"/uploads");}); + process.nextTick(function(){cleanUpDir(moddir+"/converted");}); },30*60*1000); module.exports=function(app,io,_moddir){ |