aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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>