From a8955e51a374a1fd88e203a083ca39280444c6e0 Mon Sep 17 00:00:00 2001 From: Ruben Talstra Date: Mon, 10 Mar 2025 15:11:12 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20refactor:=20Remove=20groups=20prope?= =?UTF-8?q?rty=20from=20user=20schema=20to=20streamline=20user=20model?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/models/schema/userSchema.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/api/models/schema/userSchema.js b/api/models/schema/userSchema.js index 7d62623b53..bebc7fea1e 100644 --- a/api/models/schema/userSchema.js +++ b/api/models/schema/userSchema.js @@ -27,7 +27,6 @@ const { SystemRoles } = require('librechat-data-provider'); * @property {Array} [plugins=[]] - List of plugins used by the user * @property {Array.} [refreshToken] - List of sessions with refresh tokens * @property {Date} [expiresAt] - Optional expiration date of the file - * @property {Array.} [groups] - List of group IDs the user belongs to (references to the Group model) * @property {Date} [createdAt] - Date when the user was created (added by timestamps) * @property {Date} [updatedAt] - Date when the user was last updated (added by timestamps) */ @@ -144,11 +143,6 @@ const userSchema = mongoose.Schema( type: Boolean, default: false, }, - groups: { - type: [mongoose.Schema.Types.ObjectId], - ref: 'Group', - default: [], - }, }, { timestamps: true },