fix lint
This commit is contained in:
parent
807ecf6039
commit
29ab9bef7d
|
@ -1 +1 @@
|
||||||
Subproject commit 7bd0350ed3f55da30d07a7c67fd746727ce93a9a
|
Subproject commit 1ca626aa65bdbddf940a69947be6654b533cb726
|
|
@ -35,7 +35,6 @@ import {
|
||||||
AIInnerConfig,
|
AIInnerConfig,
|
||||||
} from "@budibase/types"
|
} from "@budibase/types"
|
||||||
import * as pro from "@budibase/pro"
|
import * as pro from "@budibase/pro"
|
||||||
import { generateConfigID } from "@budibase/backend-core/src/configs"
|
|
||||||
|
|
||||||
const getEventFns = async (config: Config, existing?: Config) => {
|
const getEventFns = async (config: Config, existing?: Config) => {
|
||||||
const fns = []
|
const fns = []
|
||||||
|
@ -518,7 +517,7 @@ export async function destroy(ctx: UserCtx) {
|
||||||
try {
|
try {
|
||||||
await db.remove(id, rev)
|
await db.remove(id, rev)
|
||||||
await cache.destroy(cache.CacheKey.CHECKLIST)
|
await cache.destroy(cache.CacheKey.CHECKLIST)
|
||||||
if (id === generateConfigID(ConfigType.AI)) {
|
if (id === configs.generateConfigID(ConfigType.AI)) {
|
||||||
await pro.quotas.removeCustomAIConfig()
|
await pro.quotas.removeCustomAIConfig()
|
||||||
}
|
}
|
||||||
ctx.body = { message: "Config deleted successfully" }
|
ctx.body = { message: "Config deleted successfully" }
|
||||||
|
|
Loading…
Reference in New Issue