1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-22 12:15:36 +01:00

add null check logic from ea view (#2423)

This commit is contained in:
Kyle Spearrin 2022-11-18 14:37:05 -05:00 committed by GitHub
parent 47c8f043e1
commit 3481fd76c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,7 +29,7 @@ public class EmergencyAccessDetailsViewQuery : IQuery<EmergencyAccessDetails>
CreationDate = x.ea.CreationDate,
RevisionDate = x.ea.RevisionDate,
GranteeName = x.grantee.Name,
GranteeEmail = x.grantee.Email,
GranteeEmail = x.grantee.Email ?? x.ea.Email,
GrantorName = x.grantor.Name,
GrantorEmail = x.grantor.Email,
});