Skip to content

Commit

Permalink
add return status
Browse files Browse the repository at this point in the history
Signed-off-by: letonghan <[email protected]>
  • Loading branch information
letonghan committed Aug 12, 2024
1 parent e3167ef commit 2a73606
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions comps/dataprep/redis/langchain/prepare_doc_redis.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,8 @@ async def delete_single_file(file_path: str = Body(..., embed=True)):
# delete file on local disk
delete_path.unlink()

return {"status": True}

# delete folder
else:
print(f"[dataprep - del] Delete folder {file_path} is not supported for now.")
Expand Down

0 comments on commit 2a73606

Please sign in to comment.