aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-04-15 14:15:44 +0200
committerChocobozzz <me@florianbigard.com>2020-04-15 14:15:44 +0200
commit652c64165b3d8d1c5d5fc646c29e5cd1c82a3330 (patch)
tree03958b1ca6ace8781e23c8b0210a42ae00828bf2 /server/models
parentba6e9e8f1df29a7f355636d48c2a608bc4cb54ec (diff)
downloadPeerTube-652c64165b3d8d1c5d5fc646c29e5cd1c82a3330.tar.gz
PeerTube-652c64165b3d8d1c5d5fc646c29e5cd1c82a3330.tar.zst
PeerTube-652c64165b3d8d1c5d5fc646c29e5cd1c82a3330.zip
Fix import captions test
Diffstat (limited to 'server/models')
-rw-r--r--server/models/video/video-import.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/models/video/video-import.ts b/server/models/video/video-import.ts
index af5314ce9..fbe0ee0a7 100644
--- a/server/models/video/video-import.ts
+++ b/server/models/video/video-import.ts
@@ -129,6 +129,7 @@ export class VideoImportModel extends Model<VideoImportModel> {
129 distinct: true, 129 distinct: true,
130 include: [ 130 include: [
131 { 131 {
132 attributes: [ 'id' ],
132 model: UserModel.unscoped(), // FIXME: Without this, sequelize try to COUNT(DISTINCT(*)) which is an invalid SQL query 133 model: UserModel.unscoped(), // FIXME: Without this, sequelize try to COUNT(DISTINCT(*)) which is an invalid SQL query
133 required: true 134 required: true
134 } 135 }