feat(sleeve): tag buy tx as SleeveBuy for acquire history
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -111,7 +111,7 @@ public class SleeveController : SVSimController
|
|||||||
if (product.SeriesId != request.SeriesId)
|
if (product.SeriesId != request.SeriesId)
|
||||||
return BadRequest(new { error = "series_product_mismatch" });
|
return BadRequest(new { error = "series_product_mismatch" });
|
||||||
|
|
||||||
await using var tx = await _inv.BeginAsync(viewerId, HttpContext.RequestAborted);
|
await using var tx = await _inv.BeginAsync(viewerId, HttpContext.RequestAborted, cfg => cfg.Source = GrantSource.SleeveBuy);
|
||||||
|
|
||||||
if (tx.IsFreeplay)
|
if (tx.IsFreeplay)
|
||||||
return BadRequest(new { error = "already_purchased" });
|
return BadRequest(new { error = "already_purchased" });
|
||||||
|
|||||||
Reference in New Issue
Block a user