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:
@@ -239,9 +239,12 @@ public class PackController : SVSimController
|
|||||||
|
|
||||||
// Open inventory tx with extra includes for GachaPointBalances + GachaPointReceived
|
// Open inventory tx with extra includes for GachaPointBalances + GachaPointReceived
|
||||||
// (needed by TryExchangeAsync to validate balance and already-received guard).
|
// (needed by TryExchangeAsync to validate balance and already-received guard).
|
||||||
await using var tx = await _inv.BeginAsync(viewerId, configure: cfg => cfg
|
await using var tx = await _inv.BeginAsync(viewerId, configure: cfg =>
|
||||||
.WithInclude(v => v.GachaPointBalances)
|
{
|
||||||
.WithInclude(v => v.GachaPointReceived));
|
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
|
// Use odds_gacha_id (the seasonal pack id) — that's where the balance / received marker
|
||||||
// live. Mirrors the GetGachaPointRewards fix.
|
// live. Mirrors the GetGachaPointRewards fix.
|
||||||
|
|||||||
Reference in New Issue
Block a user