1
0
mirror of https://github.com/bitwarden/server.git synced 2025-02-02 23:41:21 +01:00

[PM-4316] Use byte for GlobalEvalentDomainsType in DomainsResponseModel (#3343)

This commit is contained in:
Oscar Hinton 2023-11-23 15:17:34 +01:00 committed by GitHub
parent e2d644f136
commit eab0838edf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,12 +43,12 @@ public class DomainsResponseModel : ResponseModel
IEnumerable<GlobalEquivalentDomainsType> excludedDomains, IEnumerable<GlobalEquivalentDomainsType> excludedDomains,
bool excluded) bool excluded)
{ {
Type = globalDomain; Type = (byte)globalDomain;
Domains = domains; Domains = domains;
Excluded = excluded && (excludedDomains?.Contains(globalDomain) ?? false); Excluded = excluded && (excludedDomains?.Contains(globalDomain) ?? false);
} }
public GlobalEquivalentDomainsType Type { get; set; } public byte Type { get; set; }
public IEnumerable<string> Domains { get; set; } public IEnumerable<string> Domains { get; set; }
public bool Excluded { get; set; } public bool Excluded { get; set; }
} }