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