diff options
Diffstat (limited to 'server/tools/peertube-auth.ts')
-rw-r--r-- | server/tools/peertube-auth.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/tools/peertube-auth.ts b/server/tools/peertube-auth.ts index 6b486e575..c1a804f83 100644 --- a/server/tools/peertube-auth.ts +++ b/server/tools/peertube-auth.ts | |||
@@ -133,7 +133,7 @@ program | |||
133 | .description('set an existing entry as default') | 133 | .description('set an existing entry as default') |
134 | .action(async url => { | 134 | .action(async url => { |
135 | const settings = await getSettings() | 135 | const settings = await getSettings() |
136 | const instanceExists = settings.remotes.indexOf(url) !== -1 | 136 | const instanceExists = settings.remotes.includes(url) |
137 | 137 | ||
138 | if (instanceExists) { | 138 | if (instanceExists) { |
139 | settings.default = settings.remotes.indexOf(url) | 139 | settings.default = settings.remotes.indexOf(url) |