feat(pack): tag inventory tx as PackOpen for acquire history

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
gamer147
2026-06-09 15:02:56 -04:00
parent 9130d6de11
commit f1d96ff554

View File

@@ -313,11 +313,14 @@ public class PackController : SVSimController
return StatusCode(StatusCodes.Status501NotImplemented, new { error = "currency_path_not_implemented" });
// Load viewer via InventoryService transaction with extra includes for pack-open needs.
await using var tx = await _inv.BeginAsync(viewerId, HttpContext.RequestAborted, cfg => cfg
.WithInclude(v => v.PackOpenCounts)
.WithInclude(v => v.GachaPointBalances)
.WithInclude(v => v.MissionData)
.WithInclude(v => v.FreePackClaims));
await using var tx = await _inv.BeginAsync(viewerId, HttpContext.RequestAborted, cfg =>
{
cfg.Source = GrantSource.PackOpen;
cfg.WithInclude(v => v.PackOpenCounts);
cfg.WithInclude(v => v.GachaPointBalances);
cfg.WithInclude(v => v.MissionData);
cfg.WithInclude(v => v.FreePackClaims);
});
var viewer = tx.Viewer;
// Tutorial alias is only valid pre-END. After state>=100 the viewer has already