diff --git a/.env.local b/.env.local index 2d8d9ac..3ef85a4 100644 --- a/.env.local +++ b/.env.local @@ -1,4 +1,4 @@ -MONGODB_URI=mongodb://expdsn:58662@expdsn.cloud:27017 +MONGODB_URI=mongodb://xyyd:xyydaibot12341234@47.96.180.195:4200/aibot?directConnection=true # MONGODB_URI=mongodb://expdsn:58662@localhost:27017 SESSION_SECRET=lREDRcaFwZIzM7Rjw63XGj8trTyMqhVUsVwwhuTQnFs= ALIYUN_RAM_ACCESS_KEY_ID=LTAI5tNzopZHJFa2Q9vqr1u5 diff --git a/app/_lib/mongodb.ts b/app/_lib/mongodb.ts index dfca694..679b103 100644 --- a/app/_lib/mongodb.ts +++ b/app/_lib/mongodb.ts @@ -24,7 +24,7 @@ if (process.env.NODE_ENV === 'development') { } export const getDb = async () => { - return (await clientPromise).db('ai-bot'); + return (await clientPromise).db('aibot'); }; export const getCollection = async (collection: string) => { const ins = await getDb();