X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Finitializers%2Fconstants.ts;h=facd3b721fc5cc96359d7efa42ff9e2567ddf042;hb=221d876fa7a9e92a5a6721b68c31d015b325393f;hp=06b4e5a181aa443ee85b722132759c764cdf7eeb;hpb=60520c7c852b7430e09cdc68ac7ccfe506cbf417;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index 06b4e5a18..facd3b721 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts @@ -2,7 +2,7 @@ import { CronRepeatOptions, EveryRepeatOptions } from 'bull' import { randomBytes } from 'crypto' import { invert } from 'lodash' import { join } from 'path' -import { randomInt } from '../../shared/core-utils/miscs/miscs' +import { randomInt } from '../../shared/core-utils/common/miscs' import { AbuseState, JobType, @@ -24,7 +24,7 @@ import { CONFIG, registerConfigChangedHandler } from './config' // --------------------------------------------------------------------------- -const LAST_MIGRATION_VERSION = 650 +const LAST_MIGRATION_VERSION = 670 // --------------------------------------------------------------------------- @@ -77,6 +77,7 @@ const SORTABLE_COLUMNS = { // Don't forget to update peertube-search-index with the same values VIDEOS_SEARCH: [ 'name', 'duration', 'createdAt', 'publishedAt', 'originallyPublishedAt', 'views', 'likes', 'match' ], VIDEO_CHANNELS_SEARCH: [ 'match', 'displayName', 'createdAt' ], + VIDEO_PLAYLISTS_SEARCH: [ 'match', 'displayName', 'createdAt' ], ABUSES: [ 'id', 'createdAt', 'state' ], @@ -146,7 +147,8 @@ const JOB_ATTEMPTS: { [id in JobType]: number } = { 'videos-views': 1, 'activitypub-refresher': 1, 'video-redundancy': 1, - 'video-live-ending': 1 + 'video-live-ending': 1, + 'move-to-object-storage': 3 } // Excluded keys are jobs that can be configured by admins const JOB_CONCURRENCY: { [id in Exclude]: number } = { @@ -161,7 +163,8 @@ const JOB_CONCURRENCY: { [id in Exclude