se agregó fecha de consulta a la api
This commit is contained in:
@@ -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;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user