🔧 refactor: update userSchema default value for role

This commit is contained in:
Danny Avila 2024-07-30 01:48:20 -04:00 committed by GitHub
parent 2d5f704695
commit 4ffdefc2a8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,5 +1,4 @@
const mongoose = require('mongoose');
const { SystemRoles } = require('librechat-data-provider');
/**
* @typedef {Object} MongoSession
@ -79,7 +78,7 @@ const userSchema = mongoose.Schema(
},
role: {
type: String,
default: SystemRoles.USER,
default: 'USER',
},
googleId: {
type: String,