From a84b8fa5cf6e4cafb841af3db9bdfcc9531c09a4 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 7 Aug 2018 10:07:53 +0200 Subject: Add import.video.torrent configuration --- server/models/account/user.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/models/account') diff --git a/server/models/account/user.ts b/server/models/account/user.ts index 1165285ea..1b1fc5ee8 100644 --- a/server/models/account/user.ts +++ b/server/models/account/user.ts @@ -295,7 +295,7 @@ export class UserModel extends Model { return json } - isAbleToUploadVideo (videoFile: Express.Multer.File) { + isAbleToUploadVideo (videoFile: { size: number }) { if (this.videoQuota === -1) return Promise.resolve(true) return UserModel.getOriginalVideoFileTotalFromUser(this) -- cgit v1.2.3