chore: remove test code

This commit is contained in:
Danny Avila 2025-05-30 15:05:18 -04:00
parent 331014cc98
commit 148052c473
No known key found for this signature in database
GPG key ID: BF31EEB2C5CA0956
2 changed files with 0 additions and 15 deletions

View file

@ -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();

View file

@ -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 });
})();