mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-09-21 21:50:49 +02:00
🚀 feat: Add Gemini 2.0 Support, Update Packages and Deprecations (#4951)
* chore: Comment out deprecated MongoDB connection options in connectDb.js * replaced deprecrated MongoDB count() function with countDocuments() * npm audit fix (package-lock cleanup) * chore: Specify .env file in launch configuration * feat: gemini-2.0 * chore: bump express to 4.21.2 to address CVE-2024-52798 * chore: remove redundant comment for .env file specification in launch configuration --------- Co-authored-by: neturmel <neturmel@gmx.de>
This commit is contained in:
parent
4640e1b124
commit
b5c9144127
10 changed files with 29 additions and 45 deletions
|
@ -19,8 +19,8 @@ const connect = require('./connect');
|
|||
let users = await User.find({});
|
||||
let userData = [];
|
||||
for (const user of users) {
|
||||
let conversationsCount = (await Conversation.count({ user: user._id })) ?? 0;
|
||||
let messagesCount = (await Message.count({ user: user._id })) ?? 0;
|
||||
let conversationsCount = (await Conversation.countDocuments({ user: user._id })) ?? 0;
|
||||
let messagesCount = (await Message.countDocuments({ user: user._id })) ?? 0;
|
||||
|
||||
userData.push({
|
||||
User: user.name,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue