From b34e4759827a2f5e9c84b062bd930a3e5af779ab Mon Sep 17 00:00:00 2001 From: Varun Date: Thu, 6 Mar 2025 14:53:46 +0530 Subject: [PATCH] changes --- src/routes/storeRoute.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/routes/storeRoute.js b/src/routes/storeRoute.js index 0214016b..cd9e1a20 100644 --- a/src/routes/storeRoute.js +++ b/src/routes/storeRoute.js @@ -1609,7 +1609,7 @@ fastify.get("/api/getSingleQuotationData/:quotationId", { }); -fastify.put("/api/updateInstallationId/:orderId", { +fastify.put("/api/updateInstallationId/:_id", { schema: { tags: ["Install"], description: "Update the installationId of an order", @@ -1617,12 +1617,12 @@ fastify.put("/api/updateInstallationId/:orderId", { params: { type: "object", properties: { - orderId: { + _id: { type: "string", - description: "Order ID", + description: "_id", }, }, - required: ["orderId"], + required: ["_id"], }, body: { type: "object",