diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-16 09:04:35 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-20 15:27:18 +0200 |
commit | 89d241a79c262b9775c233b73cff080043ebb5e6 (patch) | |
tree | cb3b6cb431d25d891ef4e02f66c61d252d17048f /shared/extra-utils/server/jobs.ts | |
parent | d23dd9fbfc4d26026352c10f81d2795ceaf2908a (diff) | |
download | PeerTube-89d241a79c262b9775c233b73cff080043ebb5e6.tar.gz PeerTube-89d241a79c262b9775c233b73cff080043ebb5e6.tar.zst PeerTube-89d241a79c262b9775c233b73cff080043ebb5e6.zip |
Shorter server command names
Diffstat (limited to 'shared/extra-utils/server/jobs.ts')
-rw-r--r-- | shared/extra-utils/server/jobs.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shared/extra-utils/server/jobs.ts b/shared/extra-utils/server/jobs.ts index 36ef882b3..754530977 100644 --- a/shared/extra-utils/server/jobs.ts +++ b/shared/extra-utils/server/jobs.ts | |||
@@ -23,7 +23,7 @@ async function waitJobs (serversArg: ServerInfo[] | ServerInfo) { | |||
23 | // Check if each server has pending request | 23 | // Check if each server has pending request |
24 | for (const server of servers) { | 24 | for (const server of servers) { |
25 | for (const state of states) { | 25 | for (const state of states) { |
26 | const p = server.jobsCommand.getJobsList({ | 26 | const p = server.jobs.getJobsList({ |
27 | state, | 27 | state, |
28 | start: 0, | 28 | start: 0, |
29 | count: 10, | 29 | count: 10, |
@@ -39,7 +39,7 @@ async function waitJobs (serversArg: ServerInfo[] | ServerInfo) { | |||
39 | tasks.push(p) | 39 | tasks.push(p) |
40 | } | 40 | } |
41 | 41 | ||
42 | const p = server.debugCommand.getDebug() | 42 | const p = server.debug.getDebug() |
43 | .then(obj => { | 43 | .then(obj => { |
44 | if (obj.activityPubMessagesWaiting !== 0) { | 44 | if (obj.activityPubMessagesWaiting !== 0) { |
45 | pendingRequests = true | 45 | pendingRequests = true |