fix: hotfix the file uploader in the delete router. (#842)

<!-- .github/pull_request_template.md -->

## Description
<!-- Provide a clear description of the changes in this PR -->

## DCO Affirmation
I affirm that all code in every commit of this pull request conforms to
the terms of the Topoteretes Developer Certificate of Origin.
This commit is contained in:
Daniel Molnar 2025-05-21 09:55:42 +02:00 committed by GitHub
parent 7eee769251
commit 94c785d231
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -58,8 +58,8 @@ def get_delete_router() -> APIRouter:
)
results.append(result)
else:
# Handle uploaded file
result = await cognee_delete(file, dataset_name=dataset_name, mode=mode)
# Handle uploaded file by accessing its file attribute
result = await cognee_delete(file.file, dataset_name=dataset_name, mode=mode)
results.append(result)
if len(results) == 1: