refactor: update getAppConfig call in getCustomConfigSpeech to include user role

This commit is contained in:
Danny Avila 2025-08-18 01:58:25 -04:00
parent 1168a7d82e
commit 493f60fa54
No known key found for this signature in database
GPG key ID: BF31EEB2C5CA0956

View file

@ -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({