@ -202,6 +202,7 @@ exports.loginDeliveryBoy = async (req) => {
if (updateData.zip) supplierInfo.profile.zip = updateData.zip;
if (updateData.phone) supplierInfo.phone = updateData.phone;
if (updateData.description) supplierInfo.description = updateData.description;
if (updateData.startingPrice) supplierInfo.startingPrice = updateData.startingPrice;
if (updateData.status) supplierInfo.status = updateData.status;
if (updateData.emails) supplierInfo.emails = updateData.emails;
console.log(supplierInfo.emails[0].email)
@ -31,6 +31,7 @@ const supplierSchema = new mongoose.Schema(
emails: [{ email: String, verified: { type: Boolean, default: false } }],
services: { password: { bcrypt: String } },
description: {type : String, default: null},
startingPrice : { type : String, default: 0.0},
profile: {
role: [{ type: String, default: "supplier" }],
firstName: { type: String, default: null },
@ -527,7 +527,8 @@ module.exports = function (fastify, opts, next) {
country: { type: "string" },
zip: { type: "string" },
description: { type: "string" },
status: {type: "string" }
status: {type: "string" },
startingPrice : {type : "string"}
},
security: [