LibreChat/packages/data-schemas/src/methods
Danny Avila 85aa3e7d9c
🔧 refactor: Centralize Collection Checks for Permissions Migration (#9565)
* 🔧 refactor: Centralize Collection Existence Checks for Permissions Migration

* Replace individual collection existence checks with a unified function `ensureRequiredCollectionsExist` in the database utility module.
* Update migration scripts for agents and prompts to utilize the new function, ensuring all required collections are verified for existence in a single call.
* Remove redundant collection existence logic from migration files, improving code maintainability and clarity.

* chore: import order in migration scripts

* 🔧 test: Update Token Test Cases for Realistic Scenarios

* Changed email in test data to 'user1-alt@example.com' for a more realistic scenario.
* Clarified expectation comment for token retrieval to indicate it finds the only matching token based on criteria.
2025-09-10 20:40:58 -04:00
..
accessRole.spec.ts 🔧 refactor: Organize Sharing/Agent Components and Improve Type Safety 2025-08-13 16:24:20 -04:00
accessRole.ts 🔧 refactor: Organize Sharing/Agent Components and Improve Type Safety 2025-08-13 16:24:20 -04:00
aclEntry.spec.ts 🛂 feat: Role as Permission Principal Type 2025-08-13 16:24:23 -04:00
aclEntry.ts 🛂 feat: Role as Permission Principal Type 2025-08-13 16:24:23 -04:00
agentCategory.ts 🏷️ chore: Add Missing Localizations for Agents, Categories, Bookmarks (#9266) 2025-08-25 13:54:13 -04:00
index.ts 🔧 fix: Remove Unused Duplicate Group Methods (#9091) 2025-08-16 12:17:12 -04:00
memory.ts 🐛 fix: Move MemoryEntry and PluginAuth model retrieval inside methods for Runtime Usage 2025-06-25 20:58:34 -04:00
pluginAuth.ts 🟢 fix: Incorrect customUserVars Set States (#8905) 2025-08-07 02:19:06 -04:00
role.ts 🎏 refactor: Streamline Role Permissions from Interface Config 2025-08-14 02:15:33 -04:00
session.ts 🕐 feat: Configurable Retention Period for Temporary Chats (#8056) 2025-06-25 17:16:26 -04:00
share.test.ts 🪐 refactor: Migrate Share Functionality to Type-Safe Methods (#7903) 2025-06-14 11:24:30 -04:00
share.ts 🪐 refactor: Migrate Share Functionality to Type-Safe Methods (#7903) 2025-06-14 11:24:30 -04:00
token.spec.ts 🔧 refactor: Centralize Collection Checks for Permissions Migration (#9565) 2025-09-10 20:40:58 -04:00
token.ts 🔒 fix: Update Token Deletion To Prevent Undefined Field Queries (#9477) 2025-09-05 17:26:02 -04:00
user.test.ts 📧 feat: Mailgun API Email Configuration (#7742) 2025-06-04 13:12:37 -04:00
user.ts feat: Add cursor pagination utilities and refine user/group/role types in @librechat/data-schemas (#9218) 2025-08-23 00:18:31 -04:00
userGroup.methods.spec.ts 🛂 feat: Role as Permission Principal Type 2025-08-13 16:24:23 -04:00
userGroup.roles.spec.ts 🔄 refactor: Principal Type Handling in Search Principals to use Array 2025-08-13 16:24:26 -04:00
userGroup.spec.ts 🛂 feat: Role as Permission Principal Type 2025-08-13 16:24:23 -04:00
userGroup.ts 🔄 refactor: Principal Type Handling in Search Principals to use Array 2025-08-13 16:24:26 -04:00