namidaka / crpg

Multiplayer mod for Mount & Blade II: Bannerlord
https://c-rpg.eu
GNU General Public License v3.0
14 stars 14 forks source link

feat: reward user endpoint retry mechanism #325

Closed Muparadzi closed 5 months ago

Muparadzi commented 5 months ago

creates idempotencykey table with guid, created timestamp & status.

if key doesn't exist or status != completed, will retry the reward. else returns no reward

verdie-g commented 5 months ago

Just passing by 👋 That can also be resolved by catching DbUpdateConcurrencyException in UpdateGameUsersCommand and retrying there. I didn't do it because I wasn't sure how to clear the DbContext.

namidaka commented 5 months ago

Can you also fix the multiple warnings you introduced?