1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-27 22:26:13 -05:00

fix error from merging main

This commit is contained in:
Brandon 2025-06-16 14:58:19 -04:00
parent 369de35f75
commit a4606e34d5
No known key found for this signature in database
GPG Key ID: A0E0EF0B207BA40D

View File

@ -204,8 +204,8 @@ public class ImportOrganizationUsersAndGroupsCommand : IImportOrganizationUsersA
if (organization.Seats.HasValue) if (organization.Seats.HasValue)
{ {
var occupiedSeats = await _organizationUserRepository.GetOccupiedSeatCountByOrganizationIdAsync(organization.Id); var occupiedSeats = await _organizationRepository.GetOccupiedSeatCountByOrganizationIdAsync(organization.Id);
seatsAvailable = organization.Seats.Value - occupiedSeats; seatsAvailable = organization.Seats.Value - occupiedSeats.Total;
enoughSeatsAvailable = seatsAvailable >= usersToAdd.Count; enoughSeatsAvailable = seatsAvailable >= usersToAdd.Count;
} }