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

@ -265,6 +265,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 } } });
for (const currentUser of allUsers) { for (const currentUser of allUsers) {

@ -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