|
|
|
@ -91,6 +91,7 @@ exports.loginDeliveryBoy = async (req) => {
|
|
|
|
|
emails: req.body.emails,
|
|
|
|
|
password: req.body.password,
|
|
|
|
|
phone: req.body.phone,
|
|
|
|
|
description: req.body.description,
|
|
|
|
|
profile: {
|
|
|
|
|
firstName: req.body.firstName,
|
|
|
|
|
lastName: req.body.lastName,
|
|
|
|
@ -131,7 +132,7 @@ exports.loginDeliveryBoy = async (req) => {
|
|
|
|
|
supplier.latitude = suppliertobeInserted.latitude;
|
|
|
|
|
supplier.longitude = suppliertobeInserted.longitude;
|
|
|
|
|
supplier.fcmId = suppliertobeInserted.fcmId
|
|
|
|
|
|
|
|
|
|
supplier.description = suppliertobeInserted.description
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
console.log("---------checkurl ecnoded string-----------------------");
|
|
|
|
@ -168,7 +169,8 @@ exports.loginDeliveryBoy = async (req) => {
|
|
|
|
|
profile: insertedSupplier.profile,
|
|
|
|
|
latitude: insertedSupplier.latitude,
|
|
|
|
|
longitude: insertedSupplier.longitude,
|
|
|
|
|
fcmId : insertedSupplier.fcmId
|
|
|
|
|
fcmId : insertedSupplier.fcmId,
|
|
|
|
|
description : insertedSupplier.description
|
|
|
|
|
},
|
|
|
|
|
status_code: 200,
|
|
|
|
|
};
|
|
|
|
@ -198,6 +200,8 @@ exports.loginDeliveryBoy = async (req) => {
|
|
|
|
|
if (updateData.country) supplierInfo.profile.country = updateData.country;
|
|
|
|
|
if (updateData.zip) supplierInfo.profile.zip = updateData.zip;
|
|
|
|
|
if (updateData.phone) supplierInfo.phone = updateData.phone;
|
|
|
|
|
if (updateData.description) supplierInfo.description = updateData.description;
|
|
|
|
|
|
|
|
|
|
if (updateData.emails) supplierInfo.emails = updateData.emails;
|
|
|
|
|
console.log(supplierInfo.emails[0].email)
|
|
|
|
|
if (updateData.role) supplierInfo.profile.role = updateData.role;
|
|
|
|
|