Update db.js
Browse files3 unmodified lines4567891011121314153 unmodified linesmongoose.connect(MONGODB_URI).then(() => console.log('📦 Connected to MongoDB'))import mongoose from 'mongoose';mongoose.connect(MONGODB_URI).then(() => console.log('📦 Connected to MongoDB')).catch(err => console.error('❌ MongoDB connection error:', err));// Schema for both movies and seriesconst ContentSchema = new mongoose.Schema({3 unmodified lines4567893 unmodified linesmongoose.connect(MONGODB_URI).then(() => console.log('📦 Connected to MongoDB'))// Schema for both movies and seriesconst ContentSchema = new mongoose.Schema({
db.js-6