feat(inventory): thread GrantSource into InventoryTransaction

Add _source field + ctor parameter (between freeplay and log) to
InventoryTransaction; pass loadCfg.Source from InventoryService.BeginAsync.
Field is captured but not yet consumed — Task 6 wires it into history rows.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
gamer147
2026-06-09 14:28:05 -04:00
parent f394529c8c
commit 015c7ce259
2 changed files with 4 additions and 1 deletions

View File

@@ -57,7 +57,7 @@ public sealed class InventoryService : IInventoryService
var freeplay = _config.Get<FreeplayConfig>();
var dbTx = await _db.Database.BeginTransactionAsync(ct);
return new InventoryTransaction(_db, dbTx, viewer, freeplay, _log);
return new InventoryTransaction(_db, dbTx, viewer, freeplay, loadCfg.Source, _log);
}
public long EffectiveBalance(Viewer viewer, SpendCurrency currency)