master^2
Varun 9 months ago
parent 0fba240cb6
commit 8b3ef81b21

@ -264,6 +264,7 @@ fastify.post("/api/login", {
} }
} }
} }
// Check for staff login // Check for staff login
const allUsers = await User.find({ "staff.staff": { $elemMatch: { phone } } }); const allUsers = await User.find({ "staff.staff": { $elemMatch: { phone } } });

@ -44,6 +44,7 @@ const generateBookingId = async () => {
const userSchema = new mongoose.Schema( const userSchema = new mongoose.Schema(
{ {
installationId:{type:String}, installationId:{type:String},

Loading…
Cancel
Save