mirror of
https://github.com/tcsenpai/pensieve.git
synced 2025-06-09 12:37:12 +00:00
fix(indexing): do not check entity exists when delete index
This commit is contained in:
parent
ef2022fa10
commit
1d10b0ef7b
@ -402,13 +402,6 @@ async def get_entity_index(entity_id: int) -> EntityIndexItem:
|
|||||||
tags=["entity"],
|
tags=["entity"],
|
||||||
)
|
)
|
||||||
async def remove_entity_from_typesense(entity_id: int, db: Session = Depends(get_db)):
|
async def remove_entity_from_typesense(entity_id: int, db: Session = Depends(get_db)):
|
||||||
entity = crud.get_entity_by_id(entity_id, db)
|
|
||||||
if entity is None:
|
|
||||||
raise HTTPException(
|
|
||||||
status_code=status.HTTP_404_NOT_FOUND,
|
|
||||||
detail="Entity not found",
|
|
||||||
)
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
indexing.remove_entity_by_id(client, entity_id)
|
indexing.remove_entity_by_id(client, entity_id)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user