feat: refs #6818 saysimple integration #904

Merged
jorgep merged 11 commits from 6818-saySimpleIntegration into dev 2024-11-13 08:25:27 +00:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit 81b35aa75b - Show all commits

View File

@ -19,9 +19,9 @@ const type = Object.keys(config).find((key) => key in useAttrs()) || 'sip';
onBeforeMount(async () => {
let url;
let { channel } = config[type];
if (type === 'sip') return;
if (type === 'say-simple') {
if (type === 'sip') return;
jorgep marked this conversation as resolved Outdated
Outdated
Review

Y si el tipo no es say-simple igualmente le pone el canal?

Y si el tipo no es say-simple igualmente le pone el canal?
else if (type === 'say-simple') {
jorgep marked this conversation as resolved Outdated
Outdated
Review

es lo mismo que poner if (type === 'say-simple') directamente jaja

es lo mismo que poner if (type === 'say-simple') directamente jaja

Tiene usted razón

Tiene usted razón
url = (await axios.get('SaySimpleConfigs/findOne')).data.url;
if (!channel)
channel = (