PR comments

This commit is contained in:
Martin McKeaveney 2024-10-22 21:48:03 +01:00
parent 29ab9bef7d
commit 4f5e831b22
2 changed files with 2 additions and 3 deletions

View File

@ -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")
} }

View File

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