diff --git a/Sunrise.Server.Tests/API/BeatmapController/ApiGetBeatmapSetHypeTests.cs b/Sunrise.Server.Tests/API/BeatmapController/ApiGetBeatmapSetHypeTests.cs index 043131c7..d39a0d84 100644 --- a/Sunrise.Server.Tests/API/BeatmapController/ApiGetBeatmapSetHypeTests.cs +++ b/Sunrise.Server.Tests/API/BeatmapController/ApiGetBeatmapSetHypeTests.cs @@ -1,6 +1,8 @@ using System.Net; using Sunrise.API.Serializable.Response; using Sunrise.Shared.Application; +using Sunrise.Shared.Enums.Beatmaps; +using Sunrise.Shared.Extensions.Beatmaps; using Sunrise.Tests.Abstracts; using Sunrise.Tests.Extensions; using Sunrise.Tests.Services.Mock; @@ -23,6 +25,7 @@ public async Task TestGetBeatmapSetHype(bool shouldHypeBefore) var beatmapSet = _mocker.Beatmap.GetRandomBeatmapSet(); beatmapSet.Id = 1; + beatmapSet.StatusString = BeatmapStatusWeb.Graveyard.BeatmapStatusWebToString(); await _mocker.Beatmap.MockBeatmapSet(beatmapSet); diff --git a/Sunrise.Server.Tests/API/BeatmapController/ApiGetHypedBeatmapSetsTests.cs b/Sunrise.Server.Tests/API/BeatmapController/ApiGetHypedBeatmapSetsTests.cs index d7c06d4d..d11c4f9c 100644 --- a/Sunrise.Server.Tests/API/BeatmapController/ApiGetHypedBeatmapSetsTests.cs +++ b/Sunrise.Server.Tests/API/BeatmapController/ApiGetHypedBeatmapSetsTests.cs @@ -58,6 +58,7 @@ public async Task TestGetHypedBeatmapSets(bool shouldAddedHypeStartHypeTrain) var beatmapSet = _mocker.Beatmap.GetRandomBeatmapSet(); beatmapSet.Id = 1; + beatmapSet.StatusString = BeatmapStatusWeb.Graveyard.BeatmapStatusWebToString(); await _mocker.Beatmap.MockBeatmapSet(beatmapSet); diff --git a/Sunrise.Shared/Application/Configuration.cs b/Sunrise.Shared/Application/Configuration.cs index e272e01e..26cdad9d 100644 --- a/Sunrise.Shared/Application/Configuration.cs +++ b/Sunrise.Shared/Application/Configuration.cs @@ -156,7 +156,7 @@ public static string WebTokenSecret return status; }).ToArray() ?? - [BeatmapStatusWeb.Qualified, BeatmapStatusWeb.Approved, BeatmapStatusWeb.Ranked, BeatmapStatusWeb.Loved]; + [BeatmapStatusWeb.Qualified, BeatmapStatusWeb.Approved, BeatmapStatusWeb.Ranked, BeatmapStatusWeb.Loved, BeatmapStatusWeb.Wip, BeatmapStatusWeb.Pending]; // Telemetry section public static bool UseMetrics => Config.GetSection("Telemetry").GetValue("UseMetrics") ?? true;