mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-19 09:50:15 +01:00
chore: remove test code
This commit is contained in:
parent
331014cc98
commit
148052c473
2 changed files with 0 additions and 15 deletions
|
|
@ -45,8 +45,6 @@ async function indexSync() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
logger.info('[indexSync] Starting index sync...');
|
|
||||||
|
|
||||||
const messageCount = await Message.countDocuments();
|
const messageCount = await Message.countDocuments();
|
||||||
const convoCount = await Conversation.countDocuments();
|
const convoCount = await Conversation.countDocuments();
|
||||||
const messages = await client.index('messages').getStats();
|
const messages = await client.index('messages').getStats();
|
||||||
|
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
||||||
require('dotenv').config({ path: '../.env' });
|
|
||||||
const mongoose = require('mongoose');
|
|
||||||
const connect = require('../config/connect');
|
|
||||||
const { createModels, createMethods } = require('@librechat/data-schemas');
|
|
||||||
createModels(mongoose);
|
|
||||||
const { listRoles } = createMethods(mongoose);
|
|
||||||
|
|
||||||
(async () => {
|
|
||||||
await connect();
|
|
||||||
console.log('Connected to database');
|
|
||||||
const roles = await listRoles();
|
|
||||||
console.dir(roles, { depth: null });
|
|
||||||
})();
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue