aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'server/controllers')
-rw-r--r--server/controllers/api/plugins.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/controllers/api/plugins.ts b/server/controllers/api/plugins.ts
index de9e055dc..e85fd6e11 100644
--- a/server/controllers/api/plugins.ts
+++ b/server/controllers/api/plugins.ts
@@ -150,7 +150,7 @@ async function installPlugin (req: express.Request, res: express.Response) {
150 : undefined 150 : undefined
151 151
152 try { 152 try {
153 const plugin = await PluginManager.Instance.install(toInstall, pluginVersion, fromDisk) 153 const plugin = await PluginManager.Instance.install({ toInstall, version: pluginVersion, fromDisk })
154 154
155 return res.json(plugin.toFormattedJSON()) 155 return res.json(plugin.toFormattedJSON())
156 } catch (err) { 156 } catch (err) {
@@ -177,7 +177,7 @@ async function updatePlugin (req: express.Request, res: express.Response) {
177async function uninstallPlugin (req: express.Request, res: express.Response) { 177async function uninstallPlugin (req: express.Request, res: express.Response) {
178 const body: ManagePlugin = req.body 178 const body: ManagePlugin = req.body
179 179
180 await PluginManager.Instance.uninstall(body.npmName) 180 await PluginManager.Instance.uninstall({ npmName: body.npmName })
181 181
182 return res.status(HttpStatusCode.NO_CONTENT_204).end() 182 return res.status(HttpStatusCode.NO_CONTENT_204).end()
183} 183}