diff --git a/src/controllers/departmentController.js b/src/controllers/departmentController.js index 3b506b2d..ef9ed9ce 100644 --- a/src/controllers/departmentController.js +++ b/src/controllers/departmentController.js @@ -52,7 +52,7 @@ exports.addDepartment = async (request, reply) => { const existingStore = await Department.findOne({ departmentId }); if (existingStore) { - return reply.status(400).send({ message: 'Phone is already registered' }); + return reply.status(400).send({ message: 'Department is already registered' }); } // const hashedPassword = await bcrypt.hash(password, 10); @@ -60,7 +60,7 @@ exports.addDepartment = async (request, reply) => { const department = new Department({ departmentId: departmentId, city, - phone, + // phone, address1, address2, // services: { password: { bcrypt: hashedPassword } },