mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 19:42:24 +02:00
esModuleInterop to true
This commit is contained in:
parent
40e7ed0714
commit
41fb13c330
208 changed files with 444 additions and 425 deletions
|
@ -1,4 +1,4 @@
|
|||
import * as bluebird from 'bluebird'
|
||||
import { map } from 'bluebird'
|
||||
import { readdir, remove, stat } from 'fs-extra'
|
||||
import { logger, loggerTagsFactory } from '@server/helpers/logger'
|
||||
import { getResumableUploadPath } from '@server/helpers/upload'
|
||||
|
@ -32,7 +32,7 @@ export class RemoveDanglingResumableUploadsScheduler extends AbstractScheduler {
|
|||
logger.debug('Reading resumable video upload folder %s with %d files', path, metafiles.length, lTags())
|
||||
|
||||
try {
|
||||
await bluebird.map(metafiles, metafile => {
|
||||
await map(metafiles, metafile => {
|
||||
return this.deleteIfOlderThan(metafile, this.lastExecutionTimeMs)
|
||||
}, { concurrency: 5 })
|
||||
} catch (error) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue