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:
parent
b4029d0902
commit
ab23161500
@ -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)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user