mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-02 21:19:12 +00:00
Fix to delete agent by slug in DB via API
This commit is contained in:
@@ -703,8 +703,7 @@ class AgentAdapters:
|
||||
if agent.creator != user:
|
||||
return False
|
||||
|
||||
async for entry in Entry.objects.filter(agent=agent).aiterator():
|
||||
await entry.adelete()
|
||||
await Entry.objects.filter(agent=agent).adelete()
|
||||
|
||||
if agent:
|
||||
await agent.adelete()
|
||||
|
||||
Reference in New Issue
Block a user