fix: undefined site

This commit is contained in:
Tobi Schäfer 2018-05-20 16:53:15 +02:00
parent 386690a818
commit 4764649789

View file

@ -81,7 +81,7 @@ User.remove = function() {
// Keep a record of another site owner for later
siteOwners[this.site._id] = owners.list().filter(o => o.name !== this.name)[0].creator._id;
} else {
Site.remove.call(site);
Site.remove.call(this.site);
}
});