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: {