Skip to content

Commit

Permalink
Correcciones al recibir archivos
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillermo Valdes committed Feb 24, 2025
1 parent 0ae8ae6 commit 0f65b8a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pjecz_carina_api_key/routers/exh_exhortos_archivos.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ async def recibir_exhorto_respuesta_archivo_request(
exh_exhorto_archivo.fecha_hora_recepcion = fecha_hora_recepcion
exh_exhorto_archivo.tamano = archivo_pdf_tamanio
exh_exhorto_archivo.url = archivo_pdf_url
database.add(exh_exhorto_archivo)
database.commit()
database.refresh(exh_exhorto_archivo)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ async def recibir_exhorto_promocion_archivo_request(
exh_exhorto_promocion_archivo.url = archivo_pdf_url
database.add(exh_exhorto_promocion_archivo)
database.commit()
database.refresh(exh_exhorto_promocion_archivo)

# Definir los datos del archivo para la respuesta
archivo = ExhExhortoArchivoItem(
Expand Down

0 comments on commit 0f65b8a

Please sign in to comment.