Correctly handle API response when no files to index

This commit is contained in:
Debanjum Singh Solanky 2024-01-16 11:57:40 +05:30
parent ba37b28fb5
commit 1ae6669fbf

View file

@ -148,7 +148,7 @@ async def update(
logger.info(f"📪 Content index updated via API call by {client} client")
indexed_filenames = ",".join(file for ctype in index_files for file in index_files[ctype])
indexed_filenames = ",".join(file for ctype in index_files for file in index_files[ctype]) or ""
return Response(content=indexed_filenames, status_code=200)