diff options
Diffstat (limited to 'server/models/user')
-rw-r--r-- | server/models/user/user.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/models/user/user.ts b/server/models/user/user.ts index 79a595528..7a21dbefa 100644 --- a/server/models/user/user.ts +++ b/server/models/user/user.ts | |||
@@ -12,6 +12,7 @@ import { | |||
12 | isUserDisplayNSFWValid, | 12 | isUserDisplayNSFWValid, |
13 | isUserVideoQuotaValid | 13 | isUserVideoQuotaValid |
14 | } from '../../helpers' | 14 | } from '../../helpers' |
15 | import { VideoResolution } from '../../../shared' | ||
15 | 16 | ||
16 | import { addMethodsToModel } from '../utils' | 17 | import { addMethodsToModel } from '../utils' |
17 | import { | 18 | import { |
@@ -245,7 +246,7 @@ function getOriginalVideoFileTotalFromUser (user: UserInstance) { | |||
245 | // attributes = [] because we don't want other fields than the sum | 246 | // attributes = [] because we don't want other fields than the sum |
246 | const query = { | 247 | const query = { |
247 | where: { | 248 | where: { |
248 | resolution: 0 // Original, TODO: improve readability | 249 | resolution: VideoResolution.ORIGINAL |
249 | }, | 250 | }, |
250 | include: [ | 251 | include: [ |
251 | { | 252 | { |