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