added create,edit and delete, block staff

master
Varun 9 months ago
parent 37f68e91ae
commit a29b754cc5

@ -824,6 +824,8 @@ exports.updateTeamMember = async (req, reply) => {
exports.createstaff = async (request, reply) => { exports.createstaff = async (request, reply) => {
try { try {
const { customerId } = request.params; const { customerId } = request.params;

@ -41,6 +41,7 @@ const generateBookingId = async () => {
return result.seq; return result.seq;
}; };
const userSchema = new mongoose.Schema( const userSchema = new mongoose.Schema(
{ {
installationId:{type:String}, installationId:{type:String},

@ -840,6 +840,7 @@ module.exports = function (fastify, opts, next) {
}); });
fastify.route({ fastify.route({
method: "PUT", method: "PUT",
url: "/api/editstaff/:customerId/:phone", url: "/api/editstaff/:customerId/:phone",

Loading…
Cancel
Save