1
0
Fork 0
mirror of synced 2024-07-13 18:26:06 +12:00

Updating datasource controller to use SDK rather than calling through controllers.

This commit is contained in:
mike12345567 2023-10-18 18:58:58 +01:00
parent 25ad78a94e
commit 2d5818ae33

View file

@ -4,7 +4,6 @@ import {
getQueryParams,
getTableParams,
} from "../../db/utils"
import { destroy as tableDestroy } from "./table/internal"
import { getIntegration } from "../../integrations"
import { invalidateDynamicVariables } from "../../threads/utils"
import { context, db as dbCore, events } from "@budibase/backend-core"
@ -325,11 +324,7 @@ async function destroyInternalTablesBySourceId(datasourceId: string) {
// Destroy the tables.
for (const table of datasourceTableDocs) {
await tableDestroy({
params: {
tableId: table._id,
},
})
await sdk.tables.internal.destroy(table)
}
}