Added EventLogs to cascade delete on Organization.

This commit is contained in:
Jared Goodwin 2019-03-24 16:06:01 -07:00
parent 024f68ba48
commit fcd93f7ae5

View File

@ -81,6 +81,7 @@ namespace Remotely_Server.Data
.Include(x => x.Devices)
.Include(x => x.SharedFiles)
.Include(x => x.PermissionGroups)
.Include(x => x.EventLogs)
.Where(x => x.RemotelyUsers.Count == 0);
foreach (var emptyOrg in emptyOrgs)