]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/models/video/video-blacklist.ts
preserve original variable names server-side
[github/Chocobozzz/PeerTube.git] / server / models / video / video-blacklist.ts
index 680eba471e5f693c55771115e9eb27a70adf4d87..8cbfe362e87e87646df9ce4ef312b2c06fa61c63 100644 (file)
@@ -78,7 +78,7 @@ export class VideoBlacklistModel extends Model<VideoBlacklistModel> {
       {
         model: VideoModel,
         required: true,
-        where: { ...searchAttribute(search, 'name') },
+        where: searchAttribute(search, 'name'),
         include: [
           {
             model: VideoChannelModel.scope({ method: [ VideoChannelScopeNames.SUMMARY, { withAccount: true } as SummaryOptions ] }),