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" });
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user