@ -101,6 +101,7 @@ exports.orderNow = async (req, reply) => {
}
const insertedagent = await agent.save();
return insertedagent;
@ -99,6 +99,7 @@ const supplierSchema = new mongoose.Schema(
status: { type: String, default: "pending" },
timestamp: { type: Date, default: Date.now }
});
const deliveryBoySchema = new mongoose.Schema({
supplierId:{ type: String, default: null },
@ -129,6 +129,7 @@ module.exports = function (fastify, opts, next) {
next();