aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/regenerate-thumbnails.ts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/regenerate-thumbnails.ts')
-rw-r--r--scripts/regenerate-thumbnails.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/regenerate-thumbnails.ts b/scripts/regenerate-thumbnails.ts
index 078f3830b..8075f90ba 100644
--- a/scripts/regenerate-thumbnails.ts
+++ b/scripts/regenerate-thumbnails.ts
@@ -1,7 +1,7 @@
1import { registerTSPaths } from '../server/helpers/register-ts-paths' 1import { registerTSPaths } from '../server/helpers/register-ts-paths'
2registerTSPaths() 2registerTSPaths()
3 3
4import * as Bluebird from 'bluebird' 4import { map } from 'bluebird'
5import { program } from 'commander' 5import { program } from 'commander'
6import { pathExists, remove } from 'fs-extra' 6import { pathExists, remove } from 'fs-extra'
7import { generateImageFilename, processImage } from '@server/helpers/image-utils' 7import { generateImageFilename, processImage } from '@server/helpers/image-utils'
@@ -23,7 +23,7 @@ async function run () {
23 23
24 const videos = await VideoModel.listLocal() 24 const videos = await VideoModel.listLocal()
25 25
26 await Bluebird.map(videos, v => { 26 await map(videos, v => {
27 return processVideo(v) 27 return processVideo(v)
28 .catch(err => console.error('Cannot process video %s.', v.url, err)) 28 .catch(err => console.error('Cannot process video %s.', v.url, err))
29 }, { concurrency: 20 }) 29 }, { concurrency: 20 })