diff options
author | Chocobozzz <me@florianbigard.com> | 2019-04-11 15:38:53 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-04-11 15:38:53 +0200 |
commit | 8f0bc73d7d5f4c88cbc5588a0ece12b3855c8f98 (patch) | |
tree | e04f1da52f9377cf6ce820425c0de6e57ab57fc6 /server/helpers/core-utils.ts | |
parent | 76062d9f96e06a23a2efc8a727ea9c5394d21466 (diff) | |
download | PeerTube-8f0bc73d7d5f4c88cbc5588a0ece12b3855c8f98.tar.gz PeerTube-8f0bc73d7d5f4c88cbc5588a0ece12b3855c8f98.tar.zst PeerTube-8f0bc73d7d5f4c88cbc5588a0ece12b3855c8f98.zip |
Add ability to limit videos history size
Diffstat (limited to 'server/helpers/core-utils.ts')
-rw-r--r-- | server/helpers/core-utils.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/helpers/core-utils.ts b/server/helpers/core-utils.ts index f6d90bfca..305d3b71e 100644 --- a/server/helpers/core-utils.ts +++ b/server/helpers/core-utils.ts | |||
@@ -40,7 +40,7 @@ const timeTable = { | |||
40 | month: 3600000 * 24 * 30 | 40 | month: 3600000 * 24 * 30 |
41 | } | 41 | } |
42 | 42 | ||
43 | export function parseDuration (duration: number | string): number { | 43 | export function parseDurationToMs (duration: number | string): number { |
44 | if (typeof duration === 'number') return duration | 44 | if (typeof duration === 'number') return duration |
45 | 45 | ||
46 | if (typeof duration === 'string') { | 46 | if (typeof duration === 'string') { |