feat(build-deck): tag buy tx as BuildDeckBuy for acquire history

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
gamer147
2026-06-09 15:06:23 -04:00
parent 5cf3cf70e8
commit 38a21e5e72

View File

@@ -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