1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-06 05:28:15 -05:00

[SG-856] Remove nullable from RequestApproved property (#2448)

This commit is contained in:
André Bispo 2022-11-29 12:49:42 +00:00 committed by GitHub
parent 447066e417
commit 297f0c8b38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,7 +24,7 @@ public class AuthRequestResponseModel : ResponseModel
Key = authRequest.Key;
MasterPasswordHash = authRequest.MasterPasswordHash;
CreationDate = authRequest.CreationDate;
RequestApproved = authRequest.Approved;
RequestApproved = authRequest.Approved ?? false;
Origin = new Uri(vaultUri).Host;
ResponseDate = authRequest.ResponseDate;
}
@ -38,6 +38,6 @@ public class AuthRequestResponseModel : ResponseModel
public string MasterPasswordHash { get; set; }
public DateTime CreationDate { get; set; }
public DateTime? ResponseDate { get; set; }
public bool? RequestApproved { get; set; }
public bool RequestApproved { get; set; }
public string Origin { get; set; }
}