diff --git a/apps/notification/webapi/providers/database.py b/apps/notification/webapi/providers/database.py index 9228a49..00e0d66 100644 --- a/apps/notification/webapi/providers/database.py +++ b/apps/notification/webapi/providers/database.py @@ -5,8 +5,11 @@ from backend.models.models import MessageTemplateDoc, EmailSenderDoc, EmailSendS import os # MongoDB config -MONGODB_URI = os.getenv('MONGODB_URI', 'mongodb+srv://jetli:8IHKx6dZK8BfugGp@freeleaps2.hanbj.mongodb.net/') -MONGODB_NAME = os.getenv('MONGODB_NAME', 'freeleaps2') +# TODO: for non-local environment, use the following config +#MONGODB_URI = os.getenv('MONGODB_URI', 'mongodb+srv://jetli:8IHKx6dZK8BfugGp@freeleaps2.hanbj.mongodb.net/') +#MONGODB_NAME = os.getenv('MONGODB_NAME', 'freeleaps2') +MONGODB_URI = os.getenv('MONGODB_URI', 'mongodb://localhost:27017/') +MONGODB_NAME = os.getenv('MONGODB_NAME', 'interview') # create MongoDB client client = AsyncIOMotorClient(