admin visibilty- temp fix

This commit is contained in:
Harshitha Shetty
2025-03-14 12:43:12 +05:30
parent 19797290f3
commit 366dc07bb6
4 changed files with 193 additions and 39 deletions

View File

@@ -16,6 +16,10 @@ const UserSchema = new mongoose.Schema(
type: Date,
default: null,
},
isAdmin:{
type:Boolean,
default: false,
}
},
{
timestamps: true,

View File

@@ -23,9 +23,9 @@ const transporter = nodemailer.createTransport({
pass: "umlc hbkr dpga iywd",
},
tls: { rejectUnauthorized: false },
connectionTimeout: 30000,
greetingTimeout: 30000,
socketTimeout: 30000,
connectionTimeout: 60000,
greetingTimeout: 60000,
socketTimeout: 60000,
});
// Existing Excel route unchanged, except transporter removal