This commit is contained in:
Martin McKeaveney 2024-10-22 18:31:07 +01:00
parent 807ecf6039
commit 29ab9bef7d
2 changed files with 2 additions and 3 deletions

@ -1 +1 @@
Subproject commit 7bd0350ed3f55da30d07a7c67fd746727ce93a9a
Subproject commit 1ca626aa65bdbddf940a69947be6654b533cb726

View File

@ -35,7 +35,6 @@ import {
AIInnerConfig,
} from "@budibase/types"
import * as pro from "@budibase/pro"
import { generateConfigID } from "@budibase/backend-core/src/configs"
const getEventFns = async (config: Config, existing?: Config) => {
const fns = []
@ -518,7 +517,7 @@ export async function destroy(ctx: UserCtx) {
try {
await db.remove(id, rev)
await cache.destroy(cache.CacheKey.CHECKLIST)
if (id === generateConfigID(ConfigType.AI)) {
if (id === configs.generateConfigID(ConfigType.AI)) {
await pro.quotas.removeCustomAIConfig()
}
ctx.body = { message: "Config deleted successfully" }