mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-19 09:50:15 +01:00
10 lines
301 B
JavaScript
10 lines
301 B
JavaScript
|
|
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);
|
||
|
|
})();
|