Use the first admin user instead of the first user (which could be a generic one).

This commit is contained in:
Tobi Schäfer 2015-05-24 23:00:20 +02:00
parent 8e1466e511
commit fc43b51140

View file

@ -158,7 +158,7 @@ Admin.purgeSites = function() {
if (this.job) {
return; // Site is already scheduled for deletion
}
let job = new Admin.Job(this, 'remove', User.getById(1));
let job = new Admin.Job(this, 'remove', root.admins.get(0));
this.job = job.name;
}
});