diff --git a/server/controllers/api/plugins.ts b/server/controllers/api/plugins.ts index bb69f25a1..a186de010 100644 --- a/server/controllers/api/plugins.ts +++ b/server/controllers/api/plugins.ts @@ -151,7 +151,7 @@ async function updatePlugin (req: express.Request, res: express.Response) { const fromDisk = !!body.path const toUpdate = body.npmName || body.path try { - const plugin = await PluginManager.Instance.update(toUpdate, undefined, fromDisk) + const plugin = await PluginManager.Instance.update(toUpdate, fromDisk) return res.json(plugin.toFormattedJSON()) } catch (err) { diff --git a/server/lib/plugins/plugin-index.ts b/server/lib/plugins/plugin-index.ts index 624f5da1d..165bc91b3 100644 --- a/server/lib/plugins/plugin-index.ts +++ b/server/lib/plugins/plugin-index.ts @@ -67,7 +67,19 @@ async function getLatestPluginsVersion (npmNames: string[]): Promise