1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 02:09:37 +02:00
This commit is contained in:
Chocobozzz 2020-07-30 14:54:31 +02:00 committed by Chocobozzz
parent 7abb5c5da1
commit f0af38e696
6 changed files with 135 additions and 130 deletions

View file

@ -79,7 +79,7 @@ function run () {
// Don't know why but loggerFormat does not remove splat key
Object.assign(log, { splat: undefined })
logLevels[ log.level ](log)
logLevels[log.level](log)
})
stream.once('close', () => res())
@ -90,7 +90,7 @@ function run () {
async function getNewestFile (files: string[], basePath: string) {
const sorted = await mtimeSortFilesDesc(files, basePath)
return (sorted.length > 0) ? sorted[ 0 ].file : ''
return (sorted.length > 0) ? sorted[0].file : ''
}
function toTimeFormat (time: string) {