aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video/video-playlist.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-06-17 16:16:28 +0200
committerChocobozzz <me@florianbigard.com>2022-06-17 16:23:13 +0200
commit5e0dbb3e52797cdea7a9069a9dd605c8f84034dd (patch)
treed885f6f1e20c201d7493cd0cd7220416f5a71d01 /server/models/video/video-playlist.ts
parent82eb78504ff6b8ed06aa28de48930fe0f21541fe (diff)
downloadPeerTube-5e0dbb3e52797cdea7a9069a9dd605c8f84034dd.tar.gz
PeerTube-5e0dbb3e52797cdea7a9069a9dd605c8f84034dd.tar.zst
PeerTube-5e0dbb3e52797cdea7a9069a9dd605c8f84034dd.zip
Fix users stats
Diffstat (limited to 'server/models/video/video-playlist.ts')
-rw-r--r--server/models/video/video-playlist.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/models/video/video-playlist.ts b/server/models/video/video-playlist.ts
index 8fb3d5f15..00cca0549 100644
--- a/server/models/video/video-playlist.ts
+++ b/server/models/video/video-playlist.ts
@@ -617,11 +617,11 @@ export class VideoPlaylistModel extends Model<Partial<AttributesOnly<VideoPlayli
617 const totalLocalPlaylists = await VideoPlaylistModel.count({ 617 const totalLocalPlaylists = await VideoPlaylistModel.count({
618 include: [ 618 include: [
619 { 619 {
620 model: AccountModel, 620 model: AccountModel.unscoped(),
621 required: true, 621 required: true,
622 include: [ 622 include: [
623 { 623 {
624 model: ActorModel, 624 model: ActorModel.unscoped(),
625 required: true, 625 required: true,
626 where: { 626 where: {
627 serverId: null 627 serverId: null