|
|
|
@ -35,7 +35,7 @@ console.log(req.params);
|
|
|
|
|
capacity: req.body.capacity,
|
|
|
|
|
typeOfWater: req.body.typeOfWater,
|
|
|
|
|
|
|
|
|
|
tankLocation:req.body.tankLocation,
|
|
|
|
|
tankLocation:(req.body.tankLocation).toLowerCase(),
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
var tank_name = req.body.tankName
|
|
|
|
@ -58,7 +58,7 @@ console.log(req.params);
|
|
|
|
|
tank.capacity = usertobeInserted.capacity;
|
|
|
|
|
tank.typeOfWater = usertobeInserted.typeOfWater;
|
|
|
|
|
|
|
|
|
|
tank.tankLocation = usertobeInserted.tankLocation;
|
|
|
|
|
tank.tankLocation = (usertobeInserted.tankLocation).toLowerCase();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
const insertedTank = await tank.save();
|
|
|
|
|