diff options
Diffstat (limited to 'server/models/video')
-rw-r--r-- | server/models/video/video-channel.ts | 4 |
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, |