aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tools
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-02-28 16:03:39 +0100
committerChocobozzz <me@florianbigard.com>2020-02-28 16:21:34 +0100
commitbdd428a6d9138d751f8cde82867022a93f1a76cc (patch)
treec2b671c3d6a34daddd20e30656f573cf59905f13 /server/tools
parent9d94e5d7b96332d628ed835c67c2986289ead9b2 (diff)
downloadPeerTube-bdd428a6d9138d751f8cde82867022a93f1a76cc.tar.gz
PeerTube-bdd428a6d9138d751f8cde82867022a93f1a76cc.tar.zst
PeerTube-bdd428a6d9138d751f8cde82867022a93f1a76cc.zip
Update dependencies
Diffstat (limited to 'server/tools')
-rw-r--r--server/tools/peertube-auth.ts2
-rw-r--r--server/tools/peertube-import-videos.ts2
-rw-r--r--server/tools/peertube-repl.ts5
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) {
274function getLicence (licence: string) { 274function 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'
2import * as repl from 'repl' 2import * as repl from 'repl'
3import * as path from 'path' 3import * as path from 'path'
4import * as _ from 'lodash' 4import * as _ from 'lodash'
5import * as uuidv1 from 'uuid/v1' 5import { uuidv1, uuidv3, uuidv4, uuidv5 } from 'uuid'
6import * as uuidv3 from 'uuid/v3'
7import * as uuidv4 from 'uuid/v4'
8import * as uuidv5 from 'uuid/v5'
9import * as Sequelize from 'sequelize' 6import * as Sequelize from 'sequelize'
10import * as YoutubeDL from 'youtube-dl' 7import * as YoutubeDL from 'youtube-dl'
11 8