From 31c82cd914e13dbf53280d0aad0740d70c414441 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 27 Oct 2020 16:06:24 +0100 Subject: Fix replay saving --- server/models/account/user.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/models/account') 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: { -- cgit v1.2.3