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 },