1
0
Fork 0
mirror of synced 2024-10-04 03:54:37 +13:00

Fixing build issue.

This commit is contained in:
mike12345567 2023-04-12 16:22:30 +01:00
parent a9fb09424b
commit cb73e3b1c3

View file

@ -3,7 +3,7 @@ import env from "./environment"
import chokidar from "chokidar"
import fs from "fs"
import { constants, tenancy } from "@budibase/backend-core"
import { processUploadedPlugin } from "./api/controllers/plugin"
import pluginsSdk from "./sdk/plugins"
export function watch() {
const watchPath = path.join(env.PLUGINS_DIR, "./**/*.tar.gz")
@ -27,7 +27,7 @@ export function watch() {
const split = path.split("/")
const name = split[split.length - 1]
console.log("Importing plugin:", path)
await processUploadedPlugin({ name, path })
await pluginsSdk.processUploaded({ name, path })
} catch (err: any) {
const message = err?.message ? err?.message : err
console.error("Failed to import plugin:", message)