refactor(inventory): share retention cap + invariant-culture date format

Introduce InventoryHistoryConfig.RetentionRowsPerViewer as the single
source of truth for the 300-row audit-log cap; InventoryTransaction
aliases it and ItemAcquireHistoryController.Take() references it
directly so the two sites cannot drift. Also adds CultureInfo.InvariantCulture
to the AcquireTime.ToString() call, matching every other WireDateFormat
site in the codebase.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
gamer147
2026-06-09 14:55:43 -04:00
parent f9a971a546
commit 37d89aa602
3 changed files with 20 additions and 4 deletions

View File

@@ -9,7 +9,7 @@ namespace SVSim.Database.Services.Inventory;
internal sealed class InventoryTransaction : IInventoryTransaction
{
private const int AcquireHistoryRetention = 300;
private const int AcquireHistoryRetention = InventoryHistoryConfig.RetentionRowsPerViewer;
private readonly SVSimDbContext _db;
private readonly IDbContextTransaction _dbTx;