se agregó fecha de consulta a la api

This commit is contained in:
2025-08-20 11:43:26 -06:00
parent b6f4084185
commit eaa5921c69
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ export class AlmacenamientoService {
if (!existente) {
throw new Error("Este usuario no tiene acceso")
}
existente.fechaAmpliacion=new Date()
existente.fechaConsulta=new Date()
const save = await this.almacenamientoRepository.save(existente)
const apiUrl = process.env.API_URL;
@@ -7,11 +7,11 @@ export class Almacenamiento {
@Column('varchar', { name: 'correo', length: 100 })
correo: string;
@Column('timestamp', {
name: 'fecha_ampliacion',
default: () => 'CURRENT_TIMESTAMP',
})
fechaAmpliacion: Date;
fechaConsulta: Date;
}