mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 17:00:15 +01:00
🔧 refactor: update userSchema default value for role
This commit is contained in:
parent
2d5f704695
commit
4ffdefc2a8
1 changed files with 1 additions and 2 deletions
|
|
@ -1,5 +1,4 @@
|
||||||
const mongoose = require('mongoose');
|
const mongoose = require('mongoose');
|
||||||
const { SystemRoles } = require('librechat-data-provider');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @typedef {Object} MongoSession
|
* @typedef {Object} MongoSession
|
||||||
|
|
@ -79,7 +78,7 @@ const userSchema = mongoose.Schema(
|
||||||
},
|
},
|
||||||
role: {
|
role: {
|
||||||
type: String,
|
type: String,
|
||||||
default: SystemRoles.USER,
|
default: 'USER',
|
||||||
},
|
},
|
||||||
googleId: {
|
googleId: {
|
||||||
type: String,
|
type: String,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue