1
0
Fork 0
mirror of synced 2024-09-21 03:43:21 +12:00

Fix for #8023 - moving Oracle integration to ESM import rather than CJS.

This commit is contained in:
mike12345567 2022-09-30 10:52:00 +01:00
parent 56559510fd
commit b059d95e02

View file

@ -13,6 +13,7 @@ import googlesheets from "./googlesheets"
import firebase from "./firebase"
import redis from "./redis"
import snowflake from "./snowflake"
import oracle from "./oracle"
import { getPlugins } from "../api/controllers/plugin"
import { SourceName, Integration, PluginType } from "@budibase/types"
import { getDatasourcePlugin } from "../utilities/fileSystem"
@ -57,7 +58,6 @@ const INTEGRATIONS: { [key: string]: any } = {
// optionally add oracle integration if the oracle binary can be installed
if (process.arch && !process.arch.startsWith("arm")) {
const oracle = require("./oracle")
DEFINITIONS[SourceName.ORACLE] = oracle.schema
INTEGRATIONS[SourceName.ORACLE] = oracle.integration
}