Skip to content

Commit

Permalink
fix getOne prisma query
Browse files Browse the repository at this point in the history
  • Loading branch information
Bladesheng committed Mar 7, 2024
1 parent 1960059 commit 3af285e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/controllers/readings.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ export class ReadingsController {

const reading = await prisma.readings.findFirst({
where: {
id: id,
id: {
equals: id,
},
},
});

Expand Down

0 comments on commit 3af285e

Please sign in to comment.