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