1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 19:42:24 +02:00

Add ability to disable storyboards

This commit is contained in:
Chocobozzz 2023-12-27 10:39:09 +01:00
parent 482223cc23
commit b9077c83fc
No known key found for this signature in database
GPG key ID: 583A612D890159BE
23 changed files with 131 additions and 60 deletions

View file

@ -336,7 +336,9 @@ class JobQueue {
.catch(err => logger.error('Cannot create job.', { err, options }))
}
createJob (options: CreateJobArgument & CreateJobOptions) {
createJob (options: CreateJobArgument & CreateJobOptions | undefined) {
if (!options) return
const queue: Queue = this.queues[options.type]
if (queue === undefined) {
logger.error('Unknown queue %s: cannot create job.', options.type)