mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 02:09:37 +02:00
Add ability to limit videos history size
This commit is contained in:
parent
76062d9f96
commit
8f0bc73d7d
14 changed files with 116 additions and 17 deletions
|
@ -40,7 +40,7 @@ const timeTable = {
|
|||
month: 3600000 * 24 * 30
|
||||
}
|
||||
|
||||
export function parseDuration (duration: number | string): number {
|
||||
export function parseDurationToMs (duration: number | string): number {
|
||||
if (typeof duration === 'number') return duration
|
||||
|
||||
if (typeof duration === 'string') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue