diff --git a/SVSim.Database/Services/Inventory/InventoryTransaction.cs b/SVSim.Database/Services/Inventory/InventoryTransaction.cs index cb82d66..2a99f75 100644 --- a/SVSim.Database/Services/Inventory/InventoryTransaction.cs +++ b/SVSim.Database/Services/Inventory/InventoryTransaction.cs @@ -296,6 +296,7 @@ internal sealed class InventoryTransaction : IInventoryTransaction private async Task PruneAcquireHistoryAsync(CancellationToken ct) { + // Two-phase: SQLite (used in tests) cannot translate Skip+OrderBy inside ExecuteDeleteAsync. var overflowIds = await _db.ViewerAcquireHistory .Where(h => h.ViewerId == Viewer.Id) .OrderByDescending(h => h.AcquireTime).ThenByDescending(h => h.Id)