decimal
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
const dbPath = '../../db/tablas';
|
||||
const { validarNumeroEntero } = require('../../helper/validar');
|
||||
const { validarNumeroEntero, validarNumero } = require('../../helper/validar');
|
||||
const { Op } = require('sequelize');
|
||||
const Inscripcion = require(`${dbPath}/Inscripcion`);
|
||||
|
||||
@@ -9,7 +9,7 @@ const actualizarTicket = async (body) => {
|
||||
'id Inscripcion',
|
||||
true
|
||||
);
|
||||
const monto = validarNumeroEntero(body.monto, 'monto', true);
|
||||
const monto = validarNumero(body.monto, 'monto', true, null, false);
|
||||
const folio = validarNumeroEntero(body.folio, 'folio', true);
|
||||
|
||||
return Inscripcion.findOne({
|
||||
|
||||
Reference in New Issue
Block a user