mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-30 15:18:50 +01:00
experimental: npm link test
This commit is contained in:
parent
f9c0e9853f
commit
a2a3f5c044
7 changed files with 124 additions and 50 deletions
10
api/test-role.js
Normal file
10
api/test-role.js
Normal 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);
|
||||
})();
|
||||
Loading…
Add table
Add a link
Reference in a new issue