master
Bhaskara Kishore 2 years ago
parent 2eb264433e
commit 0a9d15ccc1

@ -220,8 +220,8 @@ exports.tankerBooking = async (req, reply) => {
supplierId:req.body.supplierId, supplierId:req.body.supplierId,
tankName:req.body.tankName, tankName:req.body.tankName,
tankLocation:req.body.tankLocation, tankLocation:req.body.tankLocation,
// latitude: req.body.latitude, latitude: req.body.latitude,
// longitude: req.body.longitude, longitude: req.body.longitude,
//date: req.body.date, //date: req.body.date,
// time: req.body.time, // time: req.body.time,
customerPhone : customerPhone, customerPhone : customerPhone,
@ -254,8 +254,8 @@ exports.tankerBooking = async (req, reply) => {
tankersBookingData.supplierPhone = supplierPhone; tankersBookingData.supplierPhone = supplierPhone;
tankersBookingData.customerName = customerName; tankersBookingData.customerName = customerName;
tankersBookingData.supplierName = supplierName; tankersBookingData.supplierName = supplierName;
// tankersBookingData.latitude =usertobeInserted.latitude tankersBookingData.latitude =usertobeInserted.latitude
// tankersBookingData.longitude=usertobeInserted.longitude tankersBookingData.longitude=usertobeInserted.longitude
} }
} }

@ -1193,7 +1193,7 @@ exports.getconnectedCustomers = async (req, reply) => {
exports.uploadProfilePicture = async (req, reply) => { exports.uploadProfilePicture = async (req, reply) => {
try { try {
const supplierId = req.params.supplierId; const supplierId = req.params.supplierId;
const picture = req.body.picture; const picture = req.body.picture;
let profilePicture = await profilePictureSupplier.findOne({ supplierId }); let profilePicture = await profilePictureSupplier.findOne({ supplierId });

@ -132,7 +132,7 @@ const supplierSchema = new mongoose.Schema(
}); });
const profilePictureSupplierSchema = new Schema({ const profilePictureSupplierSchema = new Schema({
supplierId: { supplierId: {
type: String,unique: true, type: String,unique: true,
required: true required: true
}, },

@ -571,7 +571,7 @@ module.exports = function (fastify, opts, next) {
}, },
], ],
}, },
handler: validationHandler.uploadProfilePicture, handler: validationHandler.uploadProfilePicture,
}); });

Loading…
Cancel
Save