experimental: npm link test

This commit is contained in:
Danny Avila 2025-05-30 11:13:34 -04:00
parent f9c0e9853f
commit a2a3f5c044
No known key found for this signature in database
GPG key ID: BF31EEB2C5CA0956
7 changed files with 124 additions and 50 deletions

10
api/test-role.js Normal file
View file

@ -0,0 +1,10 @@
require('dotenv').config({ path: '../.env' });
const connect = require('../config/connect');
const { Role } = require('@librechat/data-schemas');
(async () => {
await connect();
console.log('Connected to database');
const role = await Role.findOne({ name: 'ADMIN' });
console.log(role);
})();