edoc serv

This commit is contained in:
2025-10-06 00:18:02 -06:00
parent ad947b884e
commit 48db0d72d8
6 changed files with 44 additions and 50 deletions

View File

@@ -1,7 +1,7 @@
from fastapi import APIRouter, HTTPException, Depends
from typing import Dict, Any, Optional
from .schemas import EdocumentsSchema, EdocumentsMasivoSchema
from .tasks import process_edoc_download_request, process_edocs_masivo_download_request
from .tasks import process_edoc_download_request
from api.api_v2.modules.authentication.services import get_current_user
router = APIRouter()
@@ -33,7 +33,7 @@ async def download_edocs_masivo(edoc_request: EdocumentsMasivoSchema):
edoc_dict = {
"pedimento": edoc_request_dict.get('pedimento'),
"credencial": edoc_request_dict.get('credencial'),
"edoc": edoc.get('edoc')
"edoc": edoc
}
task = process_edoc_download_request.delay(edoc_dict)
task_ids.append(task.id)