﻿//cron job that deletes photos that have all been played
var CronJob = require('cron').CronJob;
var redis = require('redis');
var client = require('../systems/rediscon.js');
var async = require('async')

module.exports = new CronJob('00 00 4 * * 0-6', function () {

    client.lrange('deletion', 0, -1, function (err, reply) {

        async.each(reply, function (snap_id, cb) { 
            
            //delete from filesystem
            //delete snap data from redis
            //call cronjob from app.js
        
        }, function (err) { 
        
        })

    })
});
@@ -506,16 +506,165 @@
  app.js%0A
+            %0A            //Weird, I'm pretty sure I implemented this, but for some reason it's not on Github. Will have to check where the code went%0A
         
@@ -724,8 +724,9 @@
   %7D)%0A%7D);
+%0A

Update imagepurge.js