1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-19 00:21:35 -05: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

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; }
} }