From 594c4a1651a2b5f3634f4fa33d0e0a2dbed5109d Mon Sep 17 00:00:00 2001 From: khavinshankar Date: Thu, 7 Sep 2023 13:16:22 +0530 Subject: [PATCH] fixed bed query --- src/utils/dailyRoundUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/dailyRoundUtils.js b/src/utils/dailyRoundUtils.js index 896f477..48b67cf 100644 --- a/src/utils/dailyRoundUtils.js +++ b/src/utils/dailyRoundUtils.js @@ -45,7 +45,7 @@ export const getPatientId = async (assetExternalId) => { export const getBedById = async (bedId) => { return prisma.bed.findFirst({ where: { - id: bedId, + externalId: bedId, deleted: false, }, include: {