From 98db7693bc30a0a65155a2a86a6e405f36524937 Mon Sep 17 00:00:00 2001 From: Florian Sylvain Date: Thu, 10 Nov 2022 13:34:37 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20-=20contains=20->=20equals=20in?= =?UTF-8?q?=20where=20clause=20show=20route?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routes/shows.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/shows.js b/routes/shows.js index 2373262..7e3699d 100644 --- a/routes/shows.js +++ b/routes/shows.js @@ -14,7 +14,7 @@ showsRouter.get('/:id', async function(req, res, next) { const articles = await prisma.serie.findMany({ where: { title: { - contains: req.params.id + equals: req.params.id } } })