diff options
Diffstat (limited to 'OsuFederatedBeatmapApi/Services/FederatedBeatmapApiBotAccountDataService.cs')
-rw-r--r-- | OsuFederatedBeatmapApi/Services/FederatedBeatmapApiBotAccountDataService.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/OsuFederatedBeatmapApi/Services/FederatedBeatmapApiBotAccountDataService.cs b/OsuFederatedBeatmapApi/Services/FederatedBeatmapApiBotAccountDataService.cs index 0f4aa6a..37b0d67 100644 --- a/OsuFederatedBeatmapApi/Services/FederatedBeatmapApiBotAccountDataService.cs +++ b/OsuFederatedBeatmapApi/Services/FederatedBeatmapApiBotAccountDataService.cs @@ -12,9 +12,10 @@ public class FederatedBeatmapApiBotAccountDataService(ILogger<FederatedBeatmapAp public GenericRoom LogRoom; public GenericRoom ControlRoom; + public List<GenericRoom> ListedRepositories; private BotData botData; - public async Task LoadAccountData() { + public async Task LoadAccountDataAsync() { try { botData = await hs.GetAccountDataAsync<BotData>(BotDataKey); } @@ -56,5 +57,6 @@ public class FederatedBeatmapApiBotAccountDataService(ILogger<FederatedBeatmapAp LogRoom = hs.GetRoom(botData.LogRoom ?? botData.ControlRoom); ControlRoom = hs.GetRoom(botData.ControlRoom); + ListedRepositories = botData.ListedRepositories.Select(hs.GetRoom).ToList(); } } |