diff --git a/src/controllers/storeController.js b/src/controllers/storeController.js index adebba8e..d2eb5972 100644 --- a/src/controllers/storeController.js +++ b/src/controllers/storeController.js @@ -1923,12 +1923,12 @@ exports.addToCartService = async (req, reply) => { exports.getquotationofinstalleranduser = async (req, reply) => { try { - const installationId = req.params.installationId; + const surveyId = req.params.surveyId; const customerId = req.body.customerId; // Find the specific tank const result = await SensorQuotation.find({ - installationId: installationId, + surveyId: surveyId, customerId: customerId, }); diff --git a/src/routes/storeRoute.js b/src/routes/storeRoute.js index 8329d829..ac661a8f 100644 --- a/src/routes/storeRoute.js +++ b/src/routes/storeRoute.js @@ -1494,18 +1494,18 @@ fastify.post("/api/editQuotationForSensor/:quatationId", { handler: storeController.editQuotationForSensor, }); -fastify.post("/api/getquotationofinstalleranduser/:installationId", { +fastify.post("/api/getquotationofinstalleranduser/:surveyId", { schema: { tags: ["Install"], - description: "This is to Get Quotations for installer and particular user", - summary: "This is to Get Quotations for installer and particular user", + description: "This is to Get Quotations for survey and particular user", + summary: "This is to Get Quotations for survey and particular user", params: { - required: ["installationId"], + required: ["surveyId"], type: "object", properties: { - installationId: { + surveyId: { type: "string", - description: "installationId", + description: "surveyId", }, }, },