From e955831ebdc197f953d2130672a440ca05bdc1de Mon Sep 17 00:00:00 2001 From: Samuel Bustamante Larriet <145044934+uo289689@users.noreply.github.com> Date: Sun, 10 Mar 2024 20:48:24 +0100 Subject: [PATCH] Try to solve deploy problem --- questions/services/question-data-service.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/questions/services/question-data-service.js b/questions/services/question-data-service.js index 2fdd31ba..3f6cc6d7 100644 --- a/questions/services/question-data-service.js +++ b/questions/services/question-data-service.js @@ -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 = { @@ -126,4 +126,4 @@ module.exports = { } }, -}; \ No newline at end of file +};