Skip to content

Commit

Permalink
Merge pull request #50 from guivaloz/guivaloz/archivos-recibidos
Browse files Browse the repository at this point in the history
Correcciones al recibir archivos
  • Loading branch information
guivaloz authored Feb 24, 2025
2 parents 0ae8ae6 + 0f65b8a commit 8e2bdbc
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 8e2bdbc

Please sign in to comment.