chore: remove test code
This commit is contained in:
@@ -45,8 +45,6 @@ async function indexSync() {
|
||||
return;
|
||||
}
|
||||
|
||||
logger.info('[indexSync] Starting index sync...');
|
||||
|
||||
const messageCount = await Message.countDocuments();
|
||||
const convoCount = await Conversation.countDocuments();
|
||||
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 });
|
||||
})();
|
||||
Reference in New Issue
Block a user