From c96374ef1a3a8f684bb69e965d43388fe201f079 Mon Sep 17 00:00:00 2001 From: expdsn <18111002318@163.com> Date: Tue, 4 Mar 2025 15:54:57 +0800 Subject: [PATCH] save --- .env.local | 2 +- app/_lib/mongodb.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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();