diff options
author | Chocobozzz <me@florianbigard.com> | 2020-10-27 16:06:24 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-11-09 15:33:04 +0100 |
commit | 31c82cd914e13dbf53280d0aad0740d70c414441 (patch) | |
tree | e2f5ad1ee0e501f58c971eb89a60fc3b1c633f04 /server/models/account/user.ts | |
parent | da0310f821b039fea1fcbf8aea49e1d2279ba98e (diff) | |
download | PeerTube-31c82cd914e13dbf53280d0aad0740d70c414441.tar.gz PeerTube-31c82cd914e13dbf53280d0aad0740d70c414441.tar.zst PeerTube-31c82cd914e13dbf53280d0aad0740d70c414441.zip |
Fix replay saving
Diffstat (limited to 'server/models/account/user.ts')
-rw-r--r-- | server/models/account/user.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/models/account/user.ts b/server/models/account/user.ts index e850d1e6d..f64568c54 100644 --- a/server/models/account/user.ts +++ b/server/models/account/user.ts | |||
@@ -710,7 +710,7 @@ export class UserModel extends Model<UserModel> { | |||
710 | required: true, | 710 | required: true, |
711 | include: [ | 711 | include: [ |
712 | { | 712 | { |
713 | attributes: [ 'id', 'videoId' ], | 713 | attributes: [], |
714 | model: VideoLiveModel.unscoped(), | 714 | model: VideoLiveModel.unscoped(), |
715 | required: true, | 715 | required: true, |
716 | where: { | 716 | where: { |
@@ -726,7 +726,7 @@ export class UserModel extends Model<UserModel> { | |||
726 | ] | 726 | ] |
727 | } | 727 | } |
728 | 728 | ||
729 | return UserModel.findOne(query) | 729 | return UserModel.unscoped().findOne(query) |
730 | } | 730 | } |
731 | 731 | ||
732 | static generateUserQuotaBaseSQL (options: { | 732 | static generateUserQuotaBaseSQL (options: { |