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

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

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

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

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

Loading…
Cancel
Save