mirror of
https://github.com/bitwarden/server.git
synced 2025-07-03 00:52:49 -05:00
Handle Constant Expression Warning (#4613)
* Add Collections Tests * Update CollectionRepository Implementation * Test Adding And Deleting Through Replace * Format * Fix Most Test Warnings * Format * Handle Constant Expression Warning * Revert AccountRevisionDate Changes * Revert RevisionData Changes More Exactly
This commit is contained in:
@ -68,8 +68,8 @@ public static class DatabaseContextExtensions
|
||||
from cg in cg_g.DefaultIfEmpty()
|
||||
where ou.OrganizationId == organizationId &&
|
||||
ou.Status == OrganizationUserStatusType.Confirmed &&
|
||||
(cu.CollectionId != null ||
|
||||
cg.CollectionId != null)
|
||||
((cu == null ? (Guid?)null : cu.CollectionId) != null ||
|
||||
(cg == null ? (Guid?)null : cg.CollectionId) != null)
|
||||
select u;
|
||||
|
||||
var users = await query.ToListAsync();
|
||||
@ -99,8 +99,8 @@ public static class DatabaseContextExtensions
|
||||
from cg in cg_g.DefaultIfEmpty()
|
||||
where ou.OrganizationId == organizationId && collectionIds.Contains(c.Id) &&
|
||||
ou.Status == OrganizationUserStatusType.Confirmed &&
|
||||
(cu.CollectionId != null ||
|
||||
cg.CollectionId != null)
|
||||
((cu == null ? (Guid?)null : cu.CollectionId) != null ||
|
||||
(cg == null ? (Guid?)null : cg.CollectionId) != null)
|
||||
select u;
|
||||
|
||||
var users = await query.ToListAsync();
|
||||
|
Reference in New Issue
Block a user