supplier changes

master^2
Varun 2 months ago
parent 0c7147392e
commit b1ac393854

@ -95,6 +95,9 @@ exports.loginDeliveryBoy = async (req) => {
password: req.body.password,
phone: req.body.phone,
description: req.body.description,
bussinessname: req.body.description,
registration_number: req.body.description,
years_in_business: req.body.description,
profile: {
firstName: req.body.firstName,
lastName: req.body.lastName,

@ -23,6 +23,9 @@ const supplierSchema = new mongoose.Schema(
{
suppliername: { type: String },
phone: { type: String, unique: true, trim: true },
bussinessname: {type : String, default: null},
registration_number: {type : String, default: null},
years_in_business: {type : String, default: null},
supplierId: {type : String, default: null},
phoneVerified: { type: Boolean, default: false },
phoneVerificationCode: { type: Number, default: 11111 },

@ -339,6 +339,11 @@ fastify.post("/api/requestedbookings", {
longitude: { type: 'number', default: 0.0},
fcmId: { type: "string", default: null },
description: { type: "string", default: null },
bussinessname: { type: "string", default: null },
registration_number: { type: "string", default: null },
years_in_business: { type: "string", default: null },
},
},

Loading…
Cancel
Save