From 1c80ecc477324a3b8d050bace57d720962f33abe Mon Sep 17 00:00:00 2001 From: Varun Date: Wed, 14 May 2025 14:22:30 +0530 Subject: [PATCH] changes --- src/controllers/storeController.js | 1 + src/models/store.js | 1 + 2 files changed, 2 insertions(+) diff --git a/src/controllers/storeController.js b/src/controllers/storeController.js index ee3483dd..ff07314f 100644 --- a/src/controllers/storeController.js +++ b/src/controllers/storeController.js @@ -2319,6 +2319,7 @@ exports.acceptQuotation = async (req, reply) => { status: "blocked", customerId, connected_to: masterHardwareId, + tankhardwareId: `tank-${j + 1}`, hardwareId: slave.hardwareId, tankName: tank.tankName || "", tankLocation: tank.tankLocation || "", diff --git a/src/models/store.js b/src/models/store.js index 6a1ca22a..d4823797 100644 --- a/src/models/store.js +++ b/src/models/store.js @@ -602,6 +602,7 @@ const orderSchema = new mongoose.Schema({ datetime: { type: String, default: null }, updated_at: { type: String, default: null }, assignedTeamMembers: [{ type: String }], + tankhardwareId: [{ type: String,default: null }], master_connections: [ { master_name: { type: String, default: null },