mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-08-04 14:57:42 +00:00
⚡ refactor: Short-Circuit Config Override Resolution (#12553)
This commit is contained in:
parent
8ed0bcf5ca
commit
15fc27950d
3 changed files with 153 additions and 13 deletions
|
|
@ -17,7 +17,7 @@ const configMiddleware = async (req, res, next) => {
|
|||
});
|
||||
|
||||
try {
|
||||
req.config = await getAppConfig();
|
||||
req.config = await getAppConfig({ tenantId: req.user?.tenantId });
|
||||
next();
|
||||
} catch (fallbackError) {
|
||||
logger.error('Fallback config middleware error:', fallbackError);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue