diff --git a/src/controllers/departmentController.js b/src/controllers/departmentController.js index 0a49852f..a0df820f 100644 --- a/src/controllers/departmentController.js +++ b/src/controllers/departmentController.js @@ -783,7 +783,8 @@ exports.getBranchDetails = async (request, reply) => { reportingManager_mobile_number, reportingManager_email, officeName, - picture + picture, + employeeType } = request.body; @@ -823,6 +824,7 @@ exports.getBranchDetails = async (request, reply) => { existing.reportingManager_email = reportingManager_email || existing.reportingManager_email; existing.officeName = officeName || existing.officeName existing.picture = picture || existing.picture + existing.employeeType = employeeType || existing.employeeType await existing.save(); diff --git a/src/routes/departmentRoute.js b/src/routes/departmentRoute.js index 7110a75b..05e70570 100644 --- a/src/routes/departmentRoute.js +++ b/src/routes/departmentRoute.js @@ -464,6 +464,7 @@ fastify.route({ reportingManager_mobile_number: { type: "string"}, reportingManager_email: { type: "string"}, picture: { type: "string"}, + employeeType: { type: "string" }, },