aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/migrations
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-09-14 11:35:58 +0200
committerChocobozzz <me@florianbigard.com>2022-09-14 11:45:18 +0200
commit4404a7c467a2c6863728127eeff5ca4b59619940 (patch)
treefef12748e97c9474d1ca7f21e13ad435286549d8 /scripts/migrations
parentfc3784583ce383cec8619be5b1d311b340b645f9 (diff)
downloadPeerTube-4404a7c467a2c6863728127eeff5ca4b59619940.tar.gz
PeerTube-4404a7c467a2c6863728127eeff5ca4b59619940.tar.zst
PeerTube-4404a7c467a2c6863728127eeff5ca4b59619940.zip
Prevent job queue to be started before plugins
Diffstat (limited to 'scripts/migrations')
-rw-r--r--scripts/migrations/peertube-4.0.ts2
-rw-r--r--scripts/migrations/peertube-4.2.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/scripts/migrations/peertube-4.0.ts b/scripts/migrations/peertube-4.0.ts
index 9e5ca60d4..b0891c2e6 100644
--- a/scripts/migrations/peertube-4.0.ts
+++ b/scripts/migrations/peertube-4.0.ts
@@ -21,7 +21,7 @@ async function run () {
21 21
22 await initDatabaseModels(true) 22 await initDatabaseModels(true)
23 23
24 JobQueue.Instance.init(true) 24 JobQueue.Instance.init()
25 25
26 const ids = await VideoModel.listLocalIds() 26 const ids = await VideoModel.listLocalIds()
27 27
diff --git a/scripts/migrations/peertube-4.2.ts b/scripts/migrations/peertube-4.2.ts
index 6a9007265..513c629ef 100644
--- a/scripts/migrations/peertube-4.2.ts
+++ b/scripts/migrations/peertube-4.2.ts
@@ -27,7 +27,7 @@ async function run () {
27 console.log('Generate avatar miniatures from existing avatars.') 27 console.log('Generate avatar miniatures from existing avatars.')
28 28
29 await initDatabaseModels(true) 29 await initDatabaseModels(true)
30 JobQueue.Instance.init(true) 30 JobQueue.Instance.init()
31 31
32 const accounts: AccountModel[] = await AccountModel.findAll({ 32 const accounts: AccountModel[] = await AccountModel.findAll({
33 include: [ 33 include: [