mirror of
https://github.com/bitwarden/server.git
synced 2025-07-03 00:52:49 -05:00

* Revert "Add git blame entry (#2226)" This reverts commit239286737d
. * Revert "Turn on file scoped namespaces (#2225)" This reverts commit34fb4cca2a
.
28 lines
896 B
C#
28 lines
896 B
C#
using Bit.Core.Enums;
|
|
using Bit.Infrastructure.EntityFramework.Models;
|
|
|
|
namespace Bit.Infrastructure.EntityFramework.Repositories.Queries
|
|
{
|
|
public class UserBumpAccountRevisionDateByOrganizationIdQuery : IQuery<User>
|
|
{
|
|
private readonly Guid _organizationId;
|
|
|
|
public UserBumpAccountRevisionDateByOrganizationIdQuery(Guid organizationId)
|
|
{
|
|
_organizationId = organizationId;
|
|
}
|
|
|
|
public IQueryable<User> Run(DatabaseContext dbContext)
|
|
{
|
|
var query = from u in dbContext.Users
|
|
join ou in dbContext.OrganizationUsers
|
|
on u.Id equals ou.UserId
|
|
where ou.OrganizationId == _organizationId &&
|
|
ou.Status == OrganizationUserStatusType.Confirmed
|
|
select u;
|
|
|
|
return query;
|
|
}
|
|
}
|
|
}
|