Recv/lib/workers/expiration.js
Mark van Renswoude 88beaa6f7d Added code and upload expiration checks
Added the feature to override email templates
Added automatic refresh of disk space indicator
2018-05-02 23:01:29 +02:00

23 lines
423 B
JavaScript

const async = require('async');
const AbstractIntervalWorker = require('./abstractintervalworker');
class ExpirationWorker extends AbstractIntervalWorker
{
constructor(repository)
{
super();
this.repository = repository;
}
async tick()
{
var self = this;
await self.repository.uploads.deleteExpired();
await self.repository.codes.deleteExpired();
}
}
module.exports = ExpirationWorker;