|
|
@ -938,6 +938,7 @@ exports.createstaff = async (request, reply) => {
|
|
|
|
return reply.status(400).send({ error: 'Duplicate phone numbers found', duplicatePhones });
|
|
|
|
return reply.status(400).send({ error: 'Duplicate phone numbers found', duplicatePhones });
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Update the user document with the new staff members
|
|
|
|
// Update the user document with the new staff members
|
|
|
|
user.staff.staff.push(...newStaff);
|
|
|
|
user.staff.staff.push(...newStaff);
|
|
|
|
|
|
|
|
|
|
|
|