From 8508606e16aa5ed00ca9d3e19d85e576e383aa63 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sun, 3 May 2026 22:21:00 -0500 Subject: use standard json options --- src/slskd/Transfers/TransfersDbContext.cs | 4 ++-- src/slskd/Transfers/Types/Batch.cs | 6 +----- 2 files changed, 3 insertions(+), 7 deletions(-) (limited to 'src') 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() .Property(b => b.Options) .HasConversion( - convertToProviderExpression: v => JsonSerializer.Serialize(v, JsonSerializerOptions.Default), - convertFromProviderExpression: v => JsonSerializer.Deserialize(v, JsonSerializerOptions.Default)) + convertToProviderExpression: v => JsonSerializer.Serialize(v, new JsonSerializerOptions().WithStandardOptions()), + convertFromProviderExpression: v => JsonSerializer.Deserialize(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; /// /// /// 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. /// /// @@ -84,10 +84,6 @@ public record Batch /// /// Gets the Transfer records associated with the batch. /// - /// - /// Lazy loaded. If not explicitly loaded with the Batch record using Include(), the collection and - /// all of the (future?) statistics will be null. - /// public ICollection Transfers { get; init; } = null; /// -- cgit v1.2.3