made changes in tank

master
varun 2 years ago
parent 35637b89ba
commit 99fb76b488

@ -88,7 +88,8 @@ async function deleteOldRecords() {
exports.addTanks = async (req, reply) => {
try {
const customerId = req.params.customerId;
const { hardwareId, tankhardwareId } = req.body;
const { hardwareId, tankhardwareId,tankName,tankLocation } = req.body;
// Check if the combination of hardwareId and tankhardwareId already exists
const existingTank = await Tank.findOne({

Loading…
Cancel
Save