mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-22 11:20:15 +01:00
refactor: update getAppConfig call in getCustomConfigSpeech to include user role
This commit is contained in:
parent
1168a7d82e
commit
493f60fa54
1 changed files with 3 additions and 1 deletions
|
|
@ -15,7 +15,9 @@ const { getAppConfig } = require('~/server/services/Config');
|
|||
*/
|
||||
async function getCustomConfigSpeech(req, res) {
|
||||
try {
|
||||
const appConfig = await getAppConfig();
|
||||
const appConfig = await getAppConfig({
|
||||
role: req.user?.role,
|
||||
});
|
||||
|
||||
if (!appConfig) {
|
||||
return res.status(200).send({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue