diff options
Diffstat (limited to 'server/models/account/user.ts')
-rw-r--r-- | server/models/account/user.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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<UserModel> { | |||
295 | return json | 295 | return json |
296 | } | 296 | } |
297 | 297 | ||
298 | isAbleToUploadVideo (videoFile: Express.Multer.File) { | 298 | isAbleToUploadVideo (videoFile: { size: number }) { |
299 | if (this.videoQuota === -1) return Promise.resolve(true) | 299 | if (this.videoQuota === -1) return Promise.resolve(true) |
300 | 300 | ||
301 | return UserModel.getOriginalVideoFileTotalFromUser(this) | 301 | return UserModel.getOriginalVideoFileTotalFromUser(this) |