mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 10:49:28 +02:00
expliciting type checks and predicates (server only)
This commit is contained in:
parent
5f7021c33d
commit
c1e791bad0
34 changed files with 127 additions and 84 deletions
|
@ -87,7 +87,7 @@ class JobQueue {
|
|||
const queue = this.queues[obj.type]
|
||||
if (queue === undefined) {
|
||||
logger.error('Unknown queue %s: cannot create job.', obj.type)
|
||||
return
|
||||
throw Error('Unknown queue, cannot create job')
|
||||
}
|
||||
|
||||
const jobArgs: Bull.JobOptions = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue