Skip to content

Commit

Permalink
index_file_data sync call
Browse files Browse the repository at this point in the history
  • Loading branch information
AlisoSouza committed Dec 21, 2023
1 parent 36f064a commit ee5cbbb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/handlers/content_bases.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,13 @@ def __init__(self, content_base_indexer: IDocumentIndexer):
def index(self, request: ContentBaseIndexRequest, Authorization: Annotated[str | None, Header()] = None):
token_verification(Authorization)
content_base = request.__dict__
task = index_file_data.delay(content_base)
# task = index_file_data.delay(content_base)
task = index_file_data(content_base)

return ContentBaseIndexResponse(
file=request.file,
filename=request.filename,
task_uuid=task.id,
task_uuid="task.id",
)

def batch_index(self):
Expand Down

0 comments on commit ee5cbbb

Please sign in to comment.