diff options
Diffstat (limited to 'server/tools')
-rw-r--r-- | server/tools/peertube-auth.ts | 2 | ||||
-rw-r--r-- | server/tools/peertube-import-videos.ts | 2 | ||||
-rw-r--r-- | server/tools/peertube-repl.ts | 5 |
3 files changed, 3 insertions, 6 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) |
diff --git a/server/tools/peertube-import-videos.ts b/server/tools/peertube-import-videos.ts index 3fb9979df..7f3b58bba 100644 --- a/server/tools/peertube-import-videos.ts +++ b/server/tools/peertube-import-videos.ts | |||
@@ -274,7 +274,7 @@ async function getCategory (categories: string[], url: string) { | |||
274 | function getLicence (licence: string) { | 274 | function getLicence (licence: string) { |
275 | if (!licence) return undefined | 275 | if (!licence) return undefined |
276 | 276 | ||
277 | if (licence.indexOf('Creative Commons Attribution licence') !== -1) return 1 | 277 | if (licence.includes('Creative Commons Attribution licence')) return 1 |
278 | 278 | ||
279 | return undefined | 279 | return undefined |
280 | } | 280 | } |
diff --git a/server/tools/peertube-repl.ts b/server/tools/peertube-repl.ts index 7c936ae0d..ecbba8b0b 100644 --- a/server/tools/peertube-repl.ts +++ b/server/tools/peertube-repl.ts | |||
@@ -2,10 +2,7 @@ import { registerTSPaths } from '../helpers/register-ts-paths' | |||
2 | import * as repl from 'repl' | 2 | import * as repl from 'repl' |
3 | import * as path from 'path' | 3 | import * as path from 'path' |
4 | import * as _ from 'lodash' | 4 | import * as _ from 'lodash' |
5 | import * as uuidv1 from 'uuid/v1' | 5 | import { uuidv1, uuidv3, uuidv4, uuidv5 } from 'uuid' |
6 | import * as uuidv3 from 'uuid/v3' | ||
7 | import * as uuidv4 from 'uuid/v4' | ||
8 | import * as uuidv5 from 'uuid/v5' | ||
9 | import * as Sequelize from 'sequelize' | 6 | import * as Sequelize from 'sequelize' |
10 | import * as YoutubeDL from 'youtube-dl' | 7 | import * as YoutubeDL from 'youtube-dl' |
11 | 8 | ||