aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2026-05-03 22:21:00 -0500
committerJP Dillingham <jp@dillingham.me>2026-05-03 22:21:00 -0500
commit8508606e16aa5ed00ca9d3e19d85e576e383aa63 (patch)
treee47ed3571d6c5d662e8fd2530b7659ef03247ad4 /src
parent2084810036f695f0766c9cb972a3d6f1eea234cb (diff)
downloadslskd-8508606e16aa5ed00ca9d3e19d85e576e383aa63.tar.gz
use standard json options
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Transfers/TransfersDbContext.cs4
-rw-r--r--src/slskd/Transfers/Types/Batch.cs6
2 files changed, 3 insertions, 7 deletions
diff --git a/src/slskd/Transfers/TransfersDbContext.cs b/src/slskd/Transfers/TransfersDbContext.cs
index 699eed6c..912c1ada 100644
--- a/src/slskd/Transfers/TransfersDbContext.cs
+++ b/src/slskd/Transfers/TransfersDbContext.cs
@@ -141,8 +141,8 @@ namespace slskd.Transfers
.Entity<Batch>()
.Property(b => b.Options)
.HasConversion(
- convertToProviderExpression: v => JsonSerializer.Serialize(v, JsonSerializerOptions.Default),
- convertFromProviderExpression: v => JsonSerializer.Deserialize<BatchOptions>(v, JsonSerializerOptions.Default))
+ convertToProviderExpression: v => JsonSerializer.Serialize(v, new JsonSerializerOptions().WithStandardOptions()),
+ convertFromProviderExpression: v => JsonSerializer.Deserialize<BatchOptions>(v, new JsonSerializerOptions().WithStandardOptions()))
.HasColumnType("TEXT");
}
}
diff --git a/src/slskd/Transfers/Types/Batch.cs b/src/slskd/Transfers/Types/Batch.cs
index d4234e30..a0d71bef 100644
--- a/src/slskd/Transfers/Types/Batch.cs
+++ b/src/slskd/Transfers/Types/Batch.cs
@@ -44,7 +44,7 @@ using Soulseek;
/// </para>
/// <para>
/// Transfers may be enqueued in a Batch, and a caller that enqueued a Batch may use the
-/// available API(s) to determine whether all of the Transfers within the Batch is complete,
+/// available API(s) to determine whether all of the Transfers within the Batch are complete,
/// but otherwise a Batch serves no functional purpose within the application.
/// </para>
/// </summary>
@@ -84,10 +84,6 @@ public record Batch
/// <summary>
/// Gets the Transfer records associated with the batch.
/// </summary>
- /// <remarks>
- /// Lazy loaded. If not explicitly loaded with the Batch record using Include(), the collection and
- /// all of the (future?) statistics will be null.
- /// </remarks>
public ICollection<Transfer> Transfers { get; init; } = null;
/// <summary>