diff --git a/backend/admin/mongo.js b/backend/admin/mongo.js index 8c7d488..6c6a4c8 100644 --- a/backend/admin/mongo.js +++ b/backend/admin/mongo.js @@ -23,16 +23,16 @@ mongoose.connect(process.env.MONGODB_URI, { }); // Replace 'YourModel' with the name of your Mongoose model -User.collection.dropIndex( - { email: 1 }, - function (err, result) { - if (err) { - console.error('Error dropping index:', err); - } else { - console.log('Index successfully dropped'); - } - } -) +// User.collection.dropIndex( +// { email: 1 }, +// function (err, result) { +// if (err) { +// console.error('Error dropping index:', err); +// } else { +// console.log('Index successfully dropped'); +// } +// } +// ) // User.collection.drop(function (err) { // if (err && err.message !== 'ns not found') { // console.error('Error dropping collection:', err); diff --git a/backend/index.ts b/backend/index.ts index 61a72b2..b66677c 100644 --- a/backend/index.ts +++ b/backend/index.ts @@ -32,5 +32,5 @@ mongoose }); }) .catch((error: any) => { - logger.error('coudlnt connect to db', error); + logger.error('server startup failed', error); }); diff --git a/frontend/src/components/CycleNotes.tsx b/frontend/src/components/CycleNotes.tsx index 0fafd63..ca3b17e 100644 --- a/frontend/src/components/CycleNotes.tsx +++ b/frontend/src/components/CycleNotes.tsx @@ -31,7 +31,7 @@ const NotesContainer = ({ return (