From 65700fcc42d2d07a6ca168938b7bf04e93db4b84 Mon Sep 17 00:00:00 2001 From: Lucas Vaz Date: Thu, 30 Apr 2026 20:02:16 -0300 Subject: [PATCH] =?UTF-8?q?adicionando=20ilike=20para=20o=20filtro=20de=20?= =?UTF-8?q?busca=20ignorar=20a=20diferenca=20de=20mai=C3=BAscula=20e=20min?= =?UTF-8?q?=C3=BAscula?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/coletor-controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/coletor-controller.js b/src/controllers/coletor-controller.js index 6af403ce..83ac3fba 100644 --- a/src/controllers/coletor-controller.js +++ b/src/controllers/coletor-controller.js @@ -46,7 +46,7 @@ export const listaColetores = async (req, res, next) => { where.id = id; } else if (nome) { nome = limparEspacos(nome); - where.nome = { [Op.like]: `%${nome}%` }; + where.nome = { [Op.iLike]: `%${nome}%` }; } const result = await Coletor.findAndCountAll({