master
Bhaskar 10 months ago
parent b24a4dd86f
commit 065a0fb0ce

@ -52,7 +52,7 @@ exports.addDepartment = async (request, reply) => {
const existingStore = await Department.findOne({ departmentId }); const existingStore = await Department.findOne({ departmentId });
if (existingStore) { 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); // const hashedPassword = await bcrypt.hash(password, 10);
@ -60,7 +60,7 @@ exports.addDepartment = async (request, reply) => {
const department = new Department({ const department = new Department({
departmentId: departmentId, departmentId: departmentId,
city, city,
phone, // phone,
address1, address1,
address2, address2,
// services: { password: { bcrypt: hashedPassword } }, // services: { password: { bcrypt: hashedPassword } },

Loading…
Cancel
Save