Skip to content

Commit

Permalink
Try to solve deploy problem
Browse files Browse the repository at this point in the history
  • Loading branch information
uo289689 authored Mar 10, 2024
1 parent 374f266 commit e955831
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions questions/services/question-data-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const Question = require('./question-data-model');
require('dotenv').config();

//TODO:DATABASE_URI has value but do not work
const uri = process.env.DATABASE_URI || 'mongodb://localhost:27017/questionDB';
const uri = process.env.DATABASE_URI || 'mongodb';
mongoose.connect(uri);

module.exports = {
Expand Down Expand Up @@ -126,4 +126,4 @@ module.exports = {
}
},

};
};

0 comments on commit e955831

Please sign in to comment.