Occupancy script udpate
This commit is contained in:
parent
61aa52d530
commit
479bb921db
|
@ -245,7 +245,7 @@ private async Task AddRemoveOccupancyAccessLevelAsync(int tenantId, bool remove)
|
|||
|
||||
try
|
||||
{
|
||||
IEnumerable<Grpc.AccessLevel> als = await Context.GetAccessLevelsAsync();
|
||||
IEnumerable<MDP.SID.Scripting.Grpc.AccessLevel> als = await Context.GetAccessLevelsAsync();
|
||||
|
||||
List<EntityUpdate> toUpdate = als.Where(e => e.Id != Configuration.AccessLevelId).Select(e =>
|
||||
new EntityUpdate()
|
||||
|
@ -266,7 +266,7 @@ private async Task AddRemoveOccupancyAccessLevelAsync(int tenantId, bool remove)
|
|||
var bulkUpdateUserRequest = new BulkUpdateUser();
|
||||
bulkUpdateUserRequest.AccessLevels.AddRange(toUpdate);
|
||||
|
||||
await Context.BulkUpdateUsersAsync(0, 100000, Array.Empty<int>(), bulkUpdateUserRequest, filterId);
|
||||
await Context.BulkUpdateUsersAsync(0, 1000, Array.Empty<int>(), bulkUpdateUserRequest, filterId);
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue