From 38a21e5e72d100c474a8513146186a3b687b8997 Mon Sep 17 00:00:00 2001 From: gamer147 Date: Tue, 9 Jun 2026 15:06:23 -0400 Subject: [PATCH] feat(build-deck): tag buy tx as BuildDeckBuy for acquire history Co-Authored-By: Claude Sonnet 4.6 --- .../Controllers/BuildDeckController.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/SVSim.EmulatedEntrypoint/Controllers/BuildDeckController.cs b/SVSim.EmulatedEntrypoint/Controllers/BuildDeckController.cs index a42c156..1a795f3 100644 --- a/SVSim.EmulatedEntrypoint/Controllers/BuildDeckController.cs +++ b/SVSim.EmulatedEntrypoint/Controllers/BuildDeckController.cs @@ -171,8 +171,11 @@ public class BuildDeckController : SVSimController } // Open the inventory transaction — loads canonical graph + BuildDeckPurchases. - await using var tx = await _inv.BeginAsync(viewerId, HttpContext.RequestAborted, - cfg => cfg.WithInclude(v => v.BuildDeckPurchases)); + await using var tx = await _inv.BeginAsync(viewerId, HttpContext.RequestAborted, cfg => + { + cfg.Source = GrantSource.BuildDeckBuy; + cfg.WithInclude(v => v.BuildDeckPurchases); + }); var viewer = tx.Viewer; // Debit currency