feature/rbac-implementation

This commit is contained in:
2026-05-21 07:56:20 -06:00
parent 3c10653d6a
commit e174df0af3
6 changed files with 29 additions and 20 deletions

View File

@@ -203,12 +203,13 @@ async def obtener_edoc(**kwargs):
# No guardaremos el archivo localmente por seguridad
logger.debug(f"Procesando documento {numero_documento} para pedimento {pedimento_id}")
rest_response = await edocs_rest_controller.post_document(
rest_response = await edocs_rest_controller.post_or_update_document(
binary_content=pdf_bytes,
organizacion=organizacion,
pedimento=pedimento_id,
file_name=_file_name,
document_type=5
document_type=5,
identifier=numero_documento,
)
print(f"rest_response >>>> {rest_response}")