mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-19 09:50:15 +01:00
- add cursor-based pagination to getListAgentsByAccess and update handler
- add index on updatedAt and _id in agent schema for improved query performance
This commit is contained in:
parent
e97444a863
commit
25b97ba388
3 changed files with 81 additions and 34 deletions
|
|
@ -395,9 +395,9 @@ const getListAgentsHandler = async (req, res) => {
|
|||
|
||||
// Use the new ACL-aware function
|
||||
const data = await getListAgentsByAccess({
|
||||
userId,
|
||||
accessibleIds,
|
||||
otherParams: {}, // Can add query params here if needed
|
||||
|
||||
});
|
||||
|
||||
return res.json(data);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue