X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fmodels%2Fvideo%2Fvideo-channel.ts;h=2c6669bcba9262ef9700502b0b186c47f597b0f3;hb=57a9b61a4aeead74e8800bbfad82ef433313b204;hp=4151dc5b533ce5ff78d32d8f72c024653643d0fb;hpb=906f46d0849fac3e2b30b7bdd57759e189d6a35d;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/models/video/video-channel.ts b/server/models/video/video-channel.ts index 4151dc5b5..2c6669bcb 100644 --- a/server/models/video/video-channel.ts +++ b/server/models/video/video-channel.ts @@ -17,8 +17,10 @@ import { Table, UpdatedAt } from 'sequelize-typescript' +import { CONFIG } from '@server/initializers/config' import { MAccountActor } from '@server/types/models' -import { AttributesOnly, pick } from '@shared/core-utils' +import { pick } from '@shared/core-utils' +import { AttributesOnly } from '@shared/typescript-utils' import { ActivityPubActor } from '../../../shared/models/activitypub' import { VideoChannel, VideoChannelSummary } from '../../../shared/models/videos' import { @@ -26,7 +28,7 @@ import { isVideoChannelDisplayNameValid, isVideoChannelSupportValid } from '../../helpers/custom-validators/video-channels' -import { CONSTRAINTS_FIELDS, VIDEO_CHANNELS, WEBSERVER } from '../../initializers/constants' +import { CONSTRAINTS_FIELDS, WEBSERVER } from '../../initializers/constants' import { sendDeleteActor } from '../../lib/activitypub/send' import { MChannelActor, @@ -584,7 +586,7 @@ ON "Account->Actor"."serverId" = "Account->Actor->Server"."id"` static listAllByAccount (accountId: number) { const query = { - limit: VIDEO_CHANNELS.MAX_PER_USER, + limit: CONFIG.VIDEO_CHANNELS.MAX_PER_USER, include: [ { attributes: [],