Use the first admin user instead of the first user (which could be a generic one).
This commit is contained in:
parent
8e1466e511
commit
fc43b51140
1 changed files with 1 additions and 1 deletions
|
@ -158,7 +158,7 @@ Admin.purgeSites = function() {
|
||||||
if (this.job) {
|
if (this.job) {
|
||||||
return; // Site is already scheduled for deletion
|
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;
|
this.job = job.name;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue