feat(item-purchase): tag purchase tx as ItemPurchase for acquire history

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
gamer147
2026-06-09 15:05:59 -04:00
parent 259e3ebe29
commit 5cf3cf70e8

View File

@@ -114,7 +114,7 @@ public class ItemPurchaseController : SVSimController
if (rest <= 0)
return BadRequest(new { error = "sold_out" });
await using var tx = await _inv.BeginAsync(viewerId, HttpContext.RequestAborted);
await using var tx = await _inv.BeginAsync(viewerId, HttpContext.RequestAborted, cfg => cfg.Source = GrantSource.ItemPurchase);
// Debit the require side via the tx.
var debit = await tx.TryDebitAsync(