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