refactor: Short-Circuit Config Override Resolution (#12553)

This commit is contained in:
Danny Avila 2026-04-07 22:38:08 -04:00
parent 8ed0bcf5ca
commit 15fc27950d
No known key found for this signature in database
GPG key ID: BF31EEB2C5CA0956
3 changed files with 153 additions and 13 deletions

View file

@ -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);