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

[SG-614] Web Version Discrepancy

[SG-614] Fixed web/core version, they were switched. (#2207)
This commit is contained in:
André Filipe da Silva Bispo 2022-08-23 10:31:29 +01:00 committed by GitHub
parent 13d1e74d69
commit c36d6fa3ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,8 +50,8 @@ namespace Bit.Admin.Controllers
var latestVersions = JsonConvert.DeserializeObject<LatestVersions>(await response.Content.ReadAsStringAsync());
return project switch
{
ProjectType.Core => new JsonResult(latestVersions.Versions.WebVersion),
ProjectType.Web => new JsonResult(latestVersions.Versions.CoreVersion),
ProjectType.Core => new JsonResult(latestVersions.Versions.CoreVersion),
ProjectType.Web => new JsonResult(latestVersions.Versions.WebVersion),
_ => throw new System.NotImplementedException(),
};
}