refactor: update getAppConfig call to include user role parameter

This commit is contained in:
Danny Avila
2025-08-18 16:59:45 -04:00
parent 5eef6ea9e8
commit 647b1bbac6

View File

@@ -14,7 +14,9 @@ const { getProvider } = require('./TTSService');
*/
async function getVoices(req, res) {
try {
const appConfig = await getAppConfig();
const appConfig = await getAppConfig({
role: req.user?.role,
});
if (!appConfig || !appConfig?.speech?.tts) {
throw new Error('Configuration or TTS schema is missing');