aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tools/peertube-plugins.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-07-19 14:36:04 +0200
committerChocobozzz <chocobozzz@cpy.re>2019-07-24 10:58:16 +0200
commit09071200c73f5358e1d0bfb61a274e4f2c4ec52b (patch)
tree602749b149df1675518846dd223105196b19a557 /server/tools/peertube-plugins.ts
parent9b474844e85cce916370693cc24f53339a695570 (diff)
downloadPeerTube-09071200c73f5358e1d0bfb61a274e4f2c4ec52b.tar.gz
PeerTube-09071200c73f5358e1d0bfb61a274e4f2c4ec52b.tar.zst
PeerTube-09071200c73f5358e1d0bfb61a274e4f2c4ec52b.zip
Add plugin API tests
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