error hora tope
This commit is contained in:
parent
fdad0bbe88
commit
3e05fee249
@ -192,17 +192,18 @@ export class PrestamoService {
|
||||
throw new ConflictException(
|
||||
'No hay un equipo de cómputo que cumpla con las caracteríasticas solicitadas o ya no hay equipos disponibles en este momento. Intenta más tarde o cambia las características.',
|
||||
);
|
||||
console.log('hola');
|
||||
return this.equipoService.update(equipo, null, 2);
|
||||
})
|
||||
.then(({ equipo }) =>
|
||||
this.repository.save(
|
||||
this.repository.create({
|
||||
equipo,
|
||||
fecha_inicio: ahora.toDate(),
|
||||
fecha_inicio: ahora.format(),
|
||||
hora_max_recoger:
|
||||
ahora > horaMax && ahora < horaExtra
|
||||
? horaTope
|
||||
: ahora.add(modulo.institucion.tiempo_recoger, 'm').toDate(),
|
||||
? horaTope.format()
|
||||
: ahora.add(modulo.institucion.tiempo_recoger, 'm').format(),
|
||||
operadorEntrega: sistema,
|
||||
operadorRegreso: sistema,
|
||||
usuario,
|
||||
|
Loading…
Reference in New Issue
Block a user