environments changes

This commit is contained in:
2025-02-06 13:25:30 +05:30
parent 75bc651475
commit 709d5df806
4 changed files with 8 additions and 7 deletions

View File

@@ -12,6 +12,7 @@ const environmentSchema: Schema = new Schema({
userId: { type: String, unique: true },
roofVisibility: { type: Boolean ,default:false},
wallVisibility: { type: Boolean ,default:false},
shadowVisibity: { type: Boolean ,default:false},
});
// Model for MongoDB collection

View File

@@ -3,7 +3,7 @@ export default async function mongoAdminCreation() {
const uri = process.env.MONGO_URI!; // Replace with your MongoDB URI
const client = new MongoClient(uri);
const user = {
user: process.env.MONGO_USER!,
user:"admin",
pwd: process.env.MONGO_PASSWORD!,
roles: [{ role: "root", db: process.env.MONGO_AUTH_DB || "admin" }],
};