aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tools/peertube-plugins.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tools/peertube-plugins.ts')
-rw-r--r--server/tools/peertube-plugins.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/server/tools/peertube-plugins.ts b/server/tools/peertube-plugins.ts
index 10cff7dd7..20254b3b4 100644
--- a/server/tools/peertube-plugins.ts
+++ b/server/tools/peertube-plugins.ts
@@ -65,9 +65,9 @@ async function pluginsListCLI () {
65 const { url, username, password } = await getServerCredentials(program) 65 const { url, username, password } = await getServerCredentials(program)
66 const accessToken = await getAdminTokenOrDie(url, username, password) 66 const accessToken = await getAdminTokenOrDie(url, username, password)
67 67
68 let type: PluginType 68 let pluginType: PluginType
69 if (program['onlyThemes']) type = PluginType.THEME 69 if (program['onlyThemes']) pluginType = PluginType.THEME
70 if (program['onlyPlugins']) type = PluginType.PLUGIN 70 if (program['onlyPlugins']) pluginType = PluginType.PLUGIN
71 71
72 const res = await listPlugins({ 72 const res = await listPlugins({
73 url, 73 url,
@@ -75,7 +75,7 @@ async function pluginsListCLI () {
75 start: 0, 75 start: 0,
76 count: 100, 76 count: 100,
77 sort: 'name', 77 sort: 'name',
78 type 78 pluginType
79 }) 79 })
80 const plugins: PeerTubePlugin[] = res.body.data 80 const plugins: PeerTubePlugin[] = res.body.data
81 81