From d1bb6c25c9c9e19a128b1d27dea41507cc849308 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 18 Oct 2024 00:03:58 +0000 Subject: [PATCH] Automated dotnet-format update --- .../Services/NexusModsUserClientWithDemo.cs | 2 +- .../CrashReportV13.cs | 2 +- src/BUTR.Site.NexusMods.Server.Persistence/IUnitOfRead.cs | 2 +- .../NexusModsUserToSteamWorkshopModEntityRepository.cs | 5 +++-- .../Services/HttpClients/ISteamAPIClient.cs | 4 ++-- 5 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/BUTR.Site.NexusMods.Client/Services/NexusModsUserClientWithDemo.cs b/src/BUTR.Site.NexusMods.Client/Services/NexusModsUserClientWithDemo.cs index 034a48ca..d5437726 100644 --- a/src/BUTR.Site.NexusMods.Client/Services/NexusModsUserClientWithDemo.cs +++ b/src/BUTR.Site.NexusMods.Client/Services/NexusModsUserClientWithDemo.cs @@ -191,7 +191,7 @@ public async Task RemoveNexusModsModManualLinkAsync(int mo return await _implementation.RemoveNexusModsModManualLinkAsync(modId, userId, username, ct); } - + public async Task AddSteamWorkshopModManualLinkAsync(string modId, int? userId = null, string? username = null, CancellationToken ct = default) { return await _implementation.AddSteamWorkshopModManualLinkAsync(modId, userId, username, ct); diff --git a/src/BUTR.Site.NexusMods.Server.CrashReport.v13/CrashReportV13.cs b/src/BUTR.Site.NexusMods.Server.CrashReport.v13/CrashReportV13.cs index eaace987..e6254a1a 100644 --- a/src/BUTR.Site.NexusMods.Server.CrashReport.v13/CrashReportV13.cs +++ b/src/BUTR.Site.NexusMods.Server.CrashReport.v13/CrashReportV13.cs @@ -129,7 +129,7 @@ public static bool TryFromModel( var steamWorkshopModId = SteamWorkshopModId.DefaultValue; steamWorkshopModId = SteamWorkshopModId.TryParseUrl(x.Url, out var steamWorkshopModIdVal) ? steamWorkshopModIdVal : steamWorkshopModId; steamWorkshopModId = x.AdditionalMetadata.FirstOrDefault(x => x.Key == "SteamWorkshopModId") is { Value: { } steamWorkshopModIdStr } ? SteamWorkshopModId.From(steamWorkshopModIdStr) : steamWorkshopModId; - + return new CrashReportToModuleMetadataEntity { TenantId = tenant, diff --git a/src/BUTR.Site.NexusMods.Server.Persistence/IUnitOfRead.cs b/src/BUTR.Site.NexusMods.Server.Persistence/IUnitOfRead.cs index 1e49ac4a..99fc487e 100644 --- a/src/BUTR.Site.NexusMods.Server.Persistence/IUnitOfRead.cs +++ b/src/BUTR.Site.NexusMods.Server.Persistence/IUnitOfRead.cs @@ -27,7 +27,7 @@ public interface IUnitOfRead : IDisposable, IAsyncDisposable INexusModsModToNameEntityRepositoryRead NexusModsModName { get; } INexusModsModToModuleInfoHistoryEntityRepositoryRead NexusModsModToModuleInfoHistory { get; } INexusModsModToFileUpdateEntityRepositoryRead NexusModsModToFileUpdates { get; } - + ISteamWorkshopModToModuleEntityRepositoryRead SteamWorkshopModModules { get; } ISteamWorkshopModToNameEntityRepositoryRead SteamWorkshopModName { get; } diff --git a/src/BUTR.Site.NexusMods.Server.Persistence/Repositories/NexusModsUserToSteamWorkshopModEntityRepository.cs b/src/BUTR.Site.NexusMods.Server.Persistence/Repositories/NexusModsUserToSteamWorkshopModEntityRepository.cs index 1fdaddb2..0148f3e0 100644 --- a/src/BUTR.Site.NexusMods.Server.Persistence/Repositories/NexusModsUserToSteamWorkshopModEntityRepository.cs +++ b/src/BUTR.Site.NexusMods.Server.Persistence/Repositories/NexusModsUserToSteamWorkshopModEntityRepository.cs @@ -1,9 +1,10 @@ -using System.Threading; -using System.Threading.Tasks; using BUTR.Site.NexusMods.Server.Models; using BUTR.Site.NexusMods.Server.Models.API; using BUTR.Site.NexusMods.Server.Models.Database; +using System.Threading; +using System.Threading.Tasks; + namespace BUTR.Site.NexusMods.Server.Repositories; public sealed record UserManuallyLinkedSteamWorkshopModModel diff --git a/src/BUTR.Site.NexusMods.Server/Services/HttpClients/ISteamAPIClient.cs b/src/BUTR.Site.NexusMods.Server/Services/HttpClients/ISteamAPIClient.cs index 19ad5266..bb490bb9 100644 --- a/src/BUTR.Site.NexusMods.Server/Services/HttpClients/ISteamAPIClient.cs +++ b/src/BUTR.Site.NexusMods.Server/Services/HttpClients/ISteamAPIClient.cs @@ -126,7 +126,7 @@ public async Task IsOwningGameAsync(SteamUserId steamUserId, uint appId, C public async Task> GetAllOwnedWorkshopItemAsync(SteamUserId steamUserId, uint appId, CancellationToken ct) { var list = new List(); - for (var page = 1;; page++) + for (var page = 1; ; page++) { var data = await GetAllOwnedWorkshopItemAsync(steamUserId, appId, page, ct); if (data.Count == 0) break; @@ -135,7 +135,7 @@ public async Task> GetAllOwnedWorkshopItemAsync(Stea return list; } - + private async Task> GetAllOwnedWorkshopItemAsync(SteamUserId steamUserId, uint appId, int page, CancellationToken ct) { using var request = new HttpRequestMessage(HttpMethod.Get, $"IPublishedFileService/GetUserFiles/v1/?key={_options.APIKey}&steamid={steamUserId}&appid={appId}&return_short_description=true&numperpage=100&page={page}");