PR comments
This commit is contained in:
parent
29ab9bef7d
commit
4f5e831b22
|
@ -31,8 +31,7 @@
|
||||||
|
|
||||||
async function fetchAIConfig() {
|
async function fetchAIConfig() {
|
||||||
try {
|
try {
|
||||||
const aiDoc = await API.getConfig(ConfigTypes.AI)
|
fullAIConfig = await API.getConfig(ConfigTypes.AI)
|
||||||
fullAIConfig = aiDoc
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
notifications.error("Error fetching AI config")
|
notifications.error("Error fetching AI config")
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,7 +44,7 @@ const getEventFns = async (config: Config, existing?: Config) => {
|
||||||
fns.push(events.email.SMTPCreated)
|
fns.push(events.email.SMTPCreated)
|
||||||
} else if (isAIConfig(config)) {
|
} else if (isAIConfig(config)) {
|
||||||
fns.push(() => events.ai.AIConfigCreated)
|
fns.push(() => events.ai.AIConfigCreated)
|
||||||
fns.push(() => pro.quotas.addCustomAIConfig)
|
fns.push(() => pro.quotas.addCustomAIConfig())
|
||||||
} else if (isGoogleConfig(config)) {
|
} else if (isGoogleConfig(config)) {
|
||||||
fns.push(() => events.auth.SSOCreated(ConfigType.GOOGLE))
|
fns.push(() => events.auth.SSOCreated(ConfigType.GOOGLE))
|
||||||
if (config.config.activated) {
|
if (config.config.activated) {
|
||||||
|
|
Loading…
Reference in New Issue