chore: address ESLint Warnings

This commit is contained in:
Danny Avila 2025-06-09 18:22:02 -04:00
parent 717f61d878
commit e97444a863
No known key found for this signature in database
GPG key ID: BF31EEB2C5CA0956
3 changed files with 57 additions and 46 deletions

View file

@ -1,3 +1,4 @@
const { logger } = require('@librechat/data-schemas');
const { Constants, isAgentsEndpoint } = require('librechat-data-provider');
const { canAccessResource } = require('./canAccessResource');
const { getAgent } = require('~/models/Agent');
@ -82,6 +83,7 @@ const canAccessAgentFromBody = (options) => {
return agentAccessMiddleware(tempReq, res, next);
} catch (error) {
logger.error('Failed to validate agent access permissions', error);
return res.status(500).json({
error: 'Internal Server Error',
message: 'Failed to validate agent access permissions',