feat(story): tag finish-reward tx as StoryFinish for acquire history

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
gamer147
2026-06-09 15:04:11 -04:00
parent 21ee113d21
commit d767944a83

View File

@@ -522,7 +522,7 @@ public class StoryService : IStoryService
{
// Open inventory tx — skip the load entirely when no rewards (narrative-only
// chapters where the only side effect is the progress upsert).
await using var tx = await _inv.BeginAsync(viewerId);
await using var tx = await _inv.BeginAsync(viewerId, configure: cfg => cfg.Source = GrantSource.StoryFinish);
// reward_list and story_reward_list have DIFFERENT semantics for reward_num:
// - reward_list: post-state totals. Client (PlayerStaticData