added shape in add and edit tanks

master
Varun 10 months ago
parent 223bbdea42
commit f095fec354

@ -110,6 +110,7 @@ exports.addTanks = async (req, reply) => {
customerId: customerId, customerId: customerId,
hardwareId: hardwareId, hardwareId: hardwareId,
tankhardwareId: tankhardwareId, tankhardwareId: tankhardwareId,
shape: req.body.shape,
tankName: req.body.tankName, tankName: req.body.tankName,
blockName: req.body.blockName, blockName: req.body.blockName,
capacity: req.body.capacity, capacity: req.body.capacity,

@ -40,6 +40,7 @@ const tanksSchema = new mongoose.Schema({
customerId: { type: String, default: null }, customerId: { type: String, default: null },
tankName: { type: String, default: null }, tankName: { type: String, default: null },
blockName: { type: String, default: null }, blockName: { type: String, default: null },
shape: { type: String, default: null },
capacity: { type: String, default: "0" }, capacity: { type: String, default: "0" },
height: { type: String, default: "0" }, height: { type: String, default: "0" },
length: { type: String, default: "0" }, length: { type: String, default: "0" },

@ -33,6 +33,7 @@ module.exports = function (fastify, opts, next) {
typeOfWater: { type: "string" }, typeOfWater: { type: "string" },
waterCapacityPerCm:{ type: "string" }, waterCapacityPerCm:{ type: "string" },
tankLocation: { type: "string" }, tankLocation: { type: "string" },
shape:{ type: "string" },
height:{ type: "string" }, height:{ type: "string" },
width:{ type: "string" }, width:{ type: "string" },
length:{ type: "string" }, length:{ type: "string" },
@ -83,6 +84,7 @@ module.exports = function (fastify, opts, next) {
tankName: { type: "string" }, tankName: { type: "string" },
blockName: { type: "string"}, blockName: { type: "string"},
capacity: { type: "string" }, capacity: { type: "string" },
shape: { type: "string" },
// customerId: { type: "string" }, // customerId: { type: "string" },
typeOfWater: { type: "string" }, typeOfWater: { type: "string" },
waterCapacityPerCm:{ type: "string" }, waterCapacityPerCm:{ type: "string" },

Loading…
Cancel
Save