mirror of
https://github.com/immense/Remotely.git
synced 2025-10-26 11:27:15 +00:00
Add OrgId to LINQ query.
This commit is contained in:
parent
60cc764426
commit
43d276bc14
@ -473,7 +473,9 @@ namespace Remotely.Server.Services
|
||||
if (device != null)
|
||||
{
|
||||
device.Alias = options.DeviceAlias;
|
||||
var group = RemotelyContext.DeviceGroups.FirstOrDefault(x => x.Name.ToLower() == options.DeviceGroup.ToLower());
|
||||
var group = RemotelyContext.DeviceGroups.FirstOrDefault(x =>
|
||||
x.Name.ToLower() == options.DeviceGroup.ToLower() &&
|
||||
x.OrganizationID == device.OrganizationID);
|
||||
device.DeviceGroup = group;
|
||||
RemotelyContext.SaveChanges();
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user