diff options
author | Chocobozzz <me@florianbigard.com> | 2021-04-12 10:10:48 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-04-12 10:10:48 +0200 |
commit | 8280d0c22797c72978f698dc2deaa8ef569a9d15 (patch) | |
tree | 8136abd28c9aa0c5050bb66e2f6f7451117b57f2 /server/controllers | |
parent | 90aa0a74e95d390d62942aa72d481d5aa7b5ac23 (diff) | |
download | PeerTube-8280d0c22797c72978f698dc2deaa8ef569a9d15.tar.gz PeerTube-8280d0c22797c72978f698dc2deaa8ef569a9d15.tar.zst PeerTube-8280d0c22797c72978f698dc2deaa8ef569a9d15.zip |
Ensure to install supported plugins
Diffstat (limited to 'server/controllers')
-rw-r--r-- | server/controllers/api/plugins.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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) { | |||
151 | const fromDisk = !!body.path | 151 | const fromDisk = !!body.path |
152 | const toUpdate = body.npmName || body.path | 152 | const toUpdate = body.npmName || body.path |
153 | try { | 153 | try { |
154 | const plugin = await PluginManager.Instance.update(toUpdate, undefined, fromDisk) | 154 | const plugin = await PluginManager.Instance.update(toUpdate, fromDisk) |
155 | 155 | ||
156 | return res.json(plugin.toFormattedJSON()) | 156 | return res.json(plugin.toFormattedJSON()) |
157 | } catch (err) { | 157 | } catch (err) { |