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) => {
try {
const { customerId } = request.params;

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

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

Loading…
Cancel
Save