- fix link bot for Test Envinroment

- If invite not exist, error message
This commit is contained in:
paoloar77
2022-02-09 19:47:40 +01:00
parent b702492ec4
commit b4ad353aef
25 changed files with 67 additions and 34 deletions

View File

@@ -5,6 +5,7 @@ import { CCopyBtn } from '../CCopyBtn'
import { useUserStore } from '@store/UserStore'
import { useQuasar } from 'quasar'
import { useI18n } from '@/boot/i18n'
import { tools } from '@store/Modules/tools'
export default defineComponent({
name: 'CVerifyTelegram',
@@ -31,7 +32,11 @@ export default defineComponent({
}
function getLinkBotTelegram(): string {
return getValDb('TELEG_BOT_LINK', false)
if (tools.isTest() && !process.env.DEV) {
return getValDb('TELEG_BOT_LINK_TEST', false)
} else{
return getValDb('TELEG_BOT_LINK', false)
}
}
function getBotNameTelegram() {
return t('ws.botname');