From 570f2e5e5a529a4d2deafdc9615216f72522b1d4 Mon Sep 17 00:00:00 2001 From: Cal Corum Date: Mon, 24 Nov 2025 21:20:28 -0600 Subject: [PATCH] Fix /cc-create endpoint path mismatch (v2.19.2) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Corrected API endpoint paths from 'custom_command_creators' to 'custom_commands/creators' to match the database API routing structure. **Issue**: Users unable to create custom commands due to 404 errors **Root Cause**: Bot calling /api/v3/custom_command_creators instead of /api/v3/custom_commands/creators **Solution**: Updated 5 endpoint references in custom_commands_service.py Fixes: - Line 547: create_item_in_table() call - Lines 732, 748: client.put() calls for creator updates - Lines 762, 768: get_items_from_table_with_params() calls for creator queries 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- VERSION | 2 +- services/custom_commands_service.py | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/VERSION b/VERSION index 7965242..17bdb70 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.19.1 \ No newline at end of file +2.19.2 diff --git a/services/custom_commands_service.py b/services/custom_commands_service.py index c07afcb..b1fe7ee 100644 --- a/services/custom_commands_service.py +++ b/services/custom_commands_service.py @@ -544,7 +544,7 @@ class CustomCommandsService(BaseService[CustomCommand]): 'active_commands': 0 } - result = await self.create_item_in_table('custom_command_creators', creator_data) + result = await self.create_item_in_table('custom_commands/creators', creator_data) if not result: raise BotException("Failed to create command creator") @@ -729,7 +729,7 @@ class CustomCommandsService(BaseService[CustomCommand]): # Update creator via API try: client = await self.get_client() - await client.put('custom_command_creators', { + await client.put('custom_commands/creators', { 'total_commands': total, 'active_commands': active }, object_id=creator_id) @@ -737,15 +737,15 @@ class CustomCommandsService(BaseService[CustomCommand]): self.logger.error(f"Failed to update creator {creator_id} stats: {e}") async def _update_creator_info( - self, - creator_id: int, - username: str, + self, + creator_id: int, + username: str, display_name: Optional[str] ) -> None: """Update creator username and display name.""" try: client = await self.get_client() - await client.put('custom_command_creators', { + await client.put('custom_commands/creators', { 'username': username, 'display_name': display_name }, object_id=creator_id) @@ -759,13 +759,13 @@ class CustomCommandsService(BaseService[CustomCommand]): async def _get_creator_count(self) -> int: """Get total number of creators.""" - creators = await self.get_items_from_table_with_params('custom_command_creators', []) + creators = await self.get_items_from_table_with_params('custom_commands/creators', []) return len(creators) async def _get_most_active_creator(self) -> Optional[CustomCommandCreator]: """Get creator with most active commands.""" creators = await self.get_items_from_table_with_params( - 'custom_command_creators', + 'custom_commands/creators', [('sort', '-active_commands'), ('limit', 1)] )