fetching active delivery boys for a particular supplier

master
varun 3 years ago
parent ab270bcc91
commit 68a6786a2e

@ -101,6 +101,7 @@ exports.orderNow = async (req, reply) => {
}
}
const insertedagent = await agent.save();
return insertedagent;

@ -100,6 +100,7 @@ const supplierSchema = new mongoose.Schema(
timestamp: { type: Date, default: Date.now }
});
const deliveryBoySchema = new mongoose.Schema({
supplierId:{ type: String, default: null },
name: { type: String, default: null },

@ -129,6 +129,7 @@ module.exports = function (fastify, opts, next) {
});
next();
}

Loading…
Cancel
Save