@ -265,6 +265,7 @@ fastify.post("/api/login", {
}
// Check for staff login
const allUsers = await User.find({ "staff.staff": { $elemMatch: { phone } } });
for (const currentUser of allUsers) {
@ -44,6 +44,7 @@ const generateBookingId = async () => {
const userSchema = new mongoose.Schema(
{
installationId:{type:String},