diff --git a/src/controllers/storeController.js b/src/controllers/storeController.js index f6900cfb..4125cf48 100644 --- a/src/controllers/storeController.js +++ b/src/controllers/storeController.js @@ -1240,7 +1240,7 @@ exports.updateSensorQC = async (req, reply) => { const { _id } = req.params; let updateData = req.body; - const allowedFields = ["qccheck", "qcby", "comment","status"]; + const allowedFields = ["qccheck", "qcby", "comments","status"]; // Filter only allowed fields const filteredUpdateData = Object.keys(updateData) diff --git a/src/routes/storeRoute.js b/src/routes/storeRoute.js index b8906c8f..73ec194d 100644 --- a/src/routes/storeRoute.js +++ b/src/routes/storeRoute.js @@ -1180,7 +1180,7 @@ fastify.post("/api/updateSensorQC/:_id", { properties: { qccheck: { type: "string", description: "QC check status" }, qcby: { type: "string", description: "QC checked by" }, - comment: { type: "string", description: "QC comment" }, + comments: { type: "string", description: "QC comment" }, status: { type: "string" }, }, },