Add new navigation properties to enable cascade delete.

This commit is contained in:
Jared Goodwin 2021-04-16 16:52:12 -07:00
parent 63d511c083
commit ed48f209d0

View File

@ -848,6 +848,8 @@ namespace Remotely.Server.Services
.ThenInclude(x => x.Devices)
.Include(x => x.Organization)
.Include(x => x.Alerts)
.Include(x => x.SavedScripts)
.Include(x => x.ScriptSchedules)
.FirstOrDefault(x =>
x.Id == targetUserID &&
x.OrganizationID == orgID);