added date and time for tanker booking

master
varun 3 years ago
parent a8dc441425
commit 5740713b68

@ -127,7 +127,7 @@ exports.tankerBooking = async (req, reply) => {
address: req.body.address, address: req.body.address,
dateOfOrder: req.body.dateOfOrder, dateOfOrder: req.body.dateOfOrder,
date: req.body.date, date: req.body.date,
time: req.body.time time: req.body.time,
}; };

@ -37,7 +37,7 @@ const tankersbookingSchema = new mongoose.Schema({
amount_paid: { type: String, default: null }, amount_paid: { type: String, default: null },
amount_due: { type: String, default: null }, amount_due: { type: String, default: null },
payment_mode: { type: String, default: null }, payment_mode: { type: String, default: null },
remarks : { type: String, default: null }, remarks : { type: String, default: null }
}); });

@ -195,7 +195,7 @@ module.exports = function (fastify, opts, next) {
address: { type: "string" }, address: { type: "string" },
dateOfOrder: { type: "string"}, dateOfOrder: { type: "string"},
date: { type: "string"}, date: { type: "string"},
time: { type: "string"}, time: { type: "string"}
}, },

Loading…
Cancel
Save