diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-10-02 12:20:26 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-10-03 15:31:26 +0200 |
commit | 40298b02546e8225dd21bf6048fe7f224aefc32a (patch) | |
tree | 0a0b981dbeb2af47810adff6553a0df995a03734 /server/models/user | |
parent | f0adb2701c1cf404ff63095f71e542bfe6d025ae (diff) | |
download | PeerTube-40298b02546e8225dd21bf6048fe7f224aefc32a.tar.gz PeerTube-40298b02546e8225dd21bf6048fe7f224aefc32a.tar.zst PeerTube-40298b02546e8225dd21bf6048fe7f224aefc32a.zip |
Implement video transcoding on server side
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 | { |