исправил ошибки рантайма

This commit is contained in:
2025-10-27 19:52:35 +03:00
parent eca5cba858
commit 390d97e6d5
3 changed files with 47 additions and 17 deletions

View File

@@ -106,7 +106,7 @@ module.exports = {
// Run directly if called as script
if (require.main === module) {
const mongoUrl = process.env.MONGODB_URI || 'mongodb://admin:password@localhost:27017/procurement_db?authSource=admin';
const mongoUrl = process.env.MONGODB_URI || 'mongodb://localhost:27017/procurement_db';
mongoose.connect(mongoUrl, {
useNewUrlParser: true,