fix(api): delete orphaned sessions when character is deleted #7

Merged
ptarrant merged 1 commits from bug/orphaned-sessions-on-char-delete into dev 2025-11-26 16:47:06 +00:00
Owner
  • Add delete_sessions_by_character() method to SessionService that
    cleans up all game sessions associated with a character
  • Update delete_character() to hard delete instead of soft delete
  • Call session cleanup before deleting character to prevent orphaned data
  • Delete associated chat messages when cleaning up sessions
  • Update API documentation to reflect new behavior

🤖 Generated with Claude Code

Co-Authored-By: Claude noreply@anthropic.com

- Add delete_sessions_by_character() method to SessionService that cleans up all game sessions associated with a character - Update delete_character() to hard delete instead of soft delete - Call session cleanup before deleting character to prevent orphaned data - Delete associated chat messages when cleaning up sessions - Update API documentation to reflect new behavior 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
ptarrant added 1 commit 2025-11-26 16:47:01 +00:00
- Add delete_sessions_by_character() method to SessionService that
  cleans up all game sessions associated with a character
- Update delete_character() to hard delete instead of soft delete
- Call session cleanup before deleting character to prevent orphaned data
- Delete associated chat messages when cleaning up sessions
- Update API documentation to reflect new behavior

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
ptarrant merged commit e6e7cdb7b7 into dev 2025-11-26 16:47:06 +00:00
ptarrant deleted branch bug/orphaned-sessions-on-char-delete 2025-11-26 16:47:06 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ptarrant/Code_of_Conquest#7