From 4aa1367b6f1bab864aac142560c5da638efea8af Mon Sep 17 00:00:00 2001 From: gamer147 Date: Tue, 9 Jun 2026 15:03:21 -0400 Subject: [PATCH] feat(pack): tag gacha-point exchange tx for acquire history Co-Authored-By: Claude Sonnet 4.6 --- SVSim.EmulatedEntrypoint/Controllers/PackController.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/SVSim.EmulatedEntrypoint/Controllers/PackController.cs b/SVSim.EmulatedEntrypoint/Controllers/PackController.cs index 0a7da0a..ae5353b 100644 --- a/SVSim.EmulatedEntrypoint/Controllers/PackController.cs +++ b/SVSim.EmulatedEntrypoint/Controllers/PackController.cs @@ -239,9 +239,12 @@ public class PackController : SVSimController // Open inventory tx with extra includes for GachaPointBalances + GachaPointReceived // (needed by TryExchangeAsync to validate balance and already-received guard). - await using var tx = await _inv.BeginAsync(viewerId, configure: cfg => cfg - .WithInclude(v => v.GachaPointBalances) - .WithInclude(v => v.GachaPointReceived)); + await using var tx = await _inv.BeginAsync(viewerId, configure: cfg => + { + cfg.Source = GrantSource.GachaPointExchange; + cfg.WithInclude(v => v.GachaPointBalances); + cfg.WithInclude(v => v.GachaPointReceived); + }); // Use odds_gacha_id (the seasonal pack id) — that's where the balance / received marker // live. Mirrors the GetGachaPointRewards fix.