aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-05-12 09:06:16 +0200
committerChocobozzz <me@florianbigard.com>2023-05-12 09:06:16 +0200
commit65b2ec673d321bbbe4fc26b90720c4b2018048f8 (patch)
tree721f639f53749164562e31d77b22cfc1d2b9b0cb /server/models/video
parent5752683ea518abfeaeb33adead3cb5541616e835 (diff)
downloadPeerTube-65b2ec673d321bbbe4fc26b90720c4b2018048f8.tar.gz
PeerTube-65b2ec673d321bbbe4fc26b90720c4b2018048f8.tar.zst
PeerTube-65b2ec673d321bbbe4fc26b90720c4b2018048f8.zip
Fix SQL query
Diffstat (limited to 'server/models/video')
-rw-r--r--server/models/video/video-channel.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/models/video/video-channel.ts b/server/models/video/video-channel.ts
index 306bc6ade..0fb52827e 100644
--- a/server/models/video/video-channel.ts
+++ b/server/models/video/video-channel.ts
@@ -702,7 +702,7 @@ export class VideoChannelModel extends Model<Partial<AttributesOnly<VideoChannel
702 required: true, 702 required: true,
703 where: { 703 where: {
704 [Op.and]: [ 704 [Op.and]: [
705 ActorModel.wherePreferredUsername(name), 705 ActorModel.wherePreferredUsername(name, 'Actor.preferredUsername'),
706 { serverId: null } 706 { serverId: null }
707 ] 707 ]
708 }, 708 },
@@ -728,7 +728,7 @@ export class VideoChannelModel extends Model<Partial<AttributesOnly<VideoChannel
728 { 728 {
729 model: ActorModel, 729 model: ActorModel,
730 required: true, 730 required: true,
731 where: ActorModel.wherePreferredUsername(name), 731 where: ActorModel.wherePreferredUsername(name, 'Actor.preferredUsername'),
732 include: [ 732 include: [
733 { 733 {
734 model: ServerModel, 734 model: ServerModel,