From 72ba74618b6b576e3edf5692f0e5aa0bfeac611e Mon Sep 17 00:00:00 2001 From: YuehuCao Date: Wed, 13 Aug 2025 22:23:49 +0800 Subject: [PATCH] chore: set up local testing --- apps/notification/webapi/providers/database.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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(