Occupancy script udpate

This commit is contained in:
Justinas K. 2021-12-06 13:48:15 +02:00
parent 61aa52d530
commit 479bb921db
1 changed files with 2 additions and 2 deletions

View File

@ -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
{