ashok 10 months ago
commit 2424e66fa9

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

Loading…
Cancel
Save