From f1d96ff554f368527b4a2fa051181043d233458c Mon Sep 17 00:00:00 2001 From: gamer147 Date: Tue, 9 Jun 2026 15:02:56 -0400 Subject: [PATCH] feat(pack): tag inventory tx as PackOpen for acquire history Co-Authored-By: Claude Sonnet 4.6 --- .../Controllers/PackController.cs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/SVSim.EmulatedEntrypoint/Controllers/PackController.cs b/SVSim.EmulatedEntrypoint/Controllers/PackController.cs index 50bf9dd..0a7da0a 100644 --- a/SVSim.EmulatedEntrypoint/Controllers/PackController.cs +++ b/SVSim.EmulatedEntrypoint/Controllers/PackController.cs @@ -313,11 +313,14 @@ public class PackController : SVSimController return StatusCode(StatusCodes.Status501NotImplemented, new { error = "currency_path_not_implemented" }); // Load viewer via InventoryService transaction with extra includes for pack-open needs. - await using var tx = await _inv.BeginAsync(viewerId, HttpContext.RequestAborted, cfg => cfg - .WithInclude(v => v.PackOpenCounts) - .WithInclude(v => v.GachaPointBalances) - .WithInclude(v => v.MissionData) - .WithInclude(v => v.FreePackClaims)); + await using var tx = await _inv.BeginAsync(viewerId, HttpContext.RequestAborted, cfg => + { + cfg.Source = GrantSource.PackOpen; + cfg.WithInclude(v => v.PackOpenCounts); + cfg.WithInclude(v => v.GachaPointBalances); + cfg.WithInclude(v => v.MissionData); + cfg.WithInclude(v => v.FreePackClaims); + }); var viewer = tx.Viewer; // Tutorial alias is only valid pre-END. After state>=100 the viewer has already