Fix delete endpoint using wrong key for creator_id

Was accessing 'creator_id' but get_custom_command_by_id() returns 'creator_db_id'.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Cal Corum 2026-01-28 16:07:05 -06:00
parent b4029d0902
commit ab23161500

View File

@ -573,7 +573,7 @@ async def delete_custom_command_endpoint(
if not existing: if not existing:
raise HTTPException(status_code=404, detail=f"Custom command {command_id} not found") raise HTTPException(status_code=404, detail=f"Custom command {command_id} not found")
creator_id = existing['creator_id'] creator_id = existing['creator_db_id']
# Delete the command # Delete the command
delete_custom_command(command_id) delete_custom_command(command_id)