From 09071200c73f5358e1d0bfb61a274e4f2c4ec52b Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 19 Jul 2019 14:36:04 +0200 Subject: Add plugin API tests --- server/tools/peertube-plugins.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'server/tools') 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 () { const { url, username, password } = await getServerCredentials(program) const accessToken = await getAdminTokenOrDie(url, username, password) - let type: PluginType - if (program['onlyThemes']) type = PluginType.THEME - if (program['onlyPlugins']) type = PluginType.PLUGIN + let pluginType: PluginType + if (program['onlyThemes']) pluginType = PluginType.THEME + if (program['onlyPlugins']) pluginType = PluginType.PLUGIN const res = await listPlugins({ url, @@ -75,7 +75,7 @@ async function pluginsListCLI () { start: 0, count: 100, sort: 'name', - type + pluginType }) const plugins: PeerTubePlugin[] = res.body.data -- cgit v1.2.3