aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-05-05 14:14:26 +0200
committerChocobozzz <me@florianbigard.com>2023-05-05 14:24:27 +0200
commit841ddf8886f87ee694b604d2d0948326a6f9b4bb (patch)
tree0c1941b9132ae5352e276d85b668ec0f65e2df2a /server/controllers
parent257fa0d1a06b0110335ca53fb6cd341b6759fa5a (diff)
downloadPeerTube-841ddf8886f87ee694b604d2d0948326a6f9b4bb.tar.gz
PeerTube-841ddf8886f87ee694b604d2d0948326a6f9b4bb.tar.zst
PeerTube-841ddf8886f87ee694b604d2d0948326a6f9b4bb.zip
Don't call plugin register/unregister methods
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}