Open GregPetropoulos opened 1 year ago
When seeding the database running the npm run data:import command , an error surfaced MongooseError: Operation orders.deleteMany() buffering timed out after 10000ms.
npm run data:import
MongooseError: Operation orders.deleteMany() buffering timed out after 10000ms
this is the only solution?
When seeding the database running the
npm run data:import
command , an error surfacedMongooseError: Operation orders.deleteMany() buffering timed out after 10000ms
.The fix is I added await before the connectDB() function call in seeder.js