X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fmodels%2Faccount%2Fuser.ts;h=f64568c54c10c45cffdc0e992a7407a42eee78e8;hb=31c82cd914e13dbf53280d0aad0740d70c414441;hp=e850d1e6df311c4a45b1a054b73e33faa4cbe920;hpb=da0310f821b039fea1fcbf8aea49e1d2279ba98e;p=github%2FChocobozzz%2FPeerTube.git 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 { required: true, include: [ { - attributes: [ 'id', 'videoId' ], + attributes: [], model: VideoLiveModel.unscoped(), required: true, where: { @@ -726,7 +726,7 @@ export class UserModel extends Model { ] } - return UserModel.findOne(query) + return UserModel.unscoped().findOne(query) } static generateUserQuotaBaseSQL (options: {