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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user