From 3af285e41e4420faff01a2813a5088a5de969193 Mon Sep 17 00:00:00 2001 From: Bladesheng Date: Thu, 7 Mar 2024 14:38:39 +0100 Subject: [PATCH] fix getOne prisma query --- src/controllers/readings.controller.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/controllers/readings.controller.ts b/src/controllers/readings.controller.ts index a21dded..464d0d5 100644 --- a/src/controllers/readings.controller.ts +++ b/src/controllers/readings.controller.ts @@ -21,7 +21,9 @@ export class ReadingsController { const reading = await prisma.readings.findFirst({ where: { - id: id, + id: { + equals: id, + }, }, });