@ -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",