feat(pack): tag gacha-point exchange tx for acquire history

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
gamer147
2026-06-09 15:03:21 -04:00
parent f1d96ff554
commit 4aa1367b6f

View File

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