diff options
author | Chocobozzz <me@florianbigard.com> | 2020-04-15 14:15:44 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-04-15 14:15:44 +0200 |
commit | 652c64165b3d8d1c5d5fc646c29e5cd1c82a3330 (patch) | |
tree | 03958b1ca6ace8781e23c8b0210a42ae00828bf2 /server/models/video | |
parent | ba6e9e8f1df29a7f355636d48c2a608bc4cb54ec (diff) | |
download | PeerTube-652c64165b3d8d1c5d5fc646c29e5cd1c82a3330.tar.gz PeerTube-652c64165b3d8d1c5d5fc646c29e5cd1c82a3330.tar.zst PeerTube-652c64165b3d8d1c5d5fc646c29e5cd1c82a3330.zip |
Fix import captions test
Diffstat (limited to 'server/models/video')
-rw-r--r-- | server/models/video/video-import.ts | 1 |
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 | } |