From 571389d43b8fc8aaf27e77c06f19b320b08dbbc9 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 10 Nov 2017 17:27:49 +0100 Subject: Make it compile at least --- server/lib/cache/videos-preview-cache.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'server/lib/cache/videos-preview-cache.ts') diff --git a/server/lib/cache/videos-preview-cache.ts b/server/lib/cache/videos-preview-cache.ts index 791ad1cbf..776f647a0 100644 --- a/server/lib/cache/videos-preview-cache.ts +++ b/server/lib/cache/videos-preview-cache.ts @@ -3,9 +3,8 @@ import { join } from 'path' import { createWriteStream } from 'fs' import { database as db, CONFIG, CACHE } from '../../initializers' -import { logger, unlinkPromise } from '../../helpers' +import { logger, unlinkPromise, fetchRemoteVideoPreview } from '../../helpers' import { VideoInstance } from '../../models' -import { fetchRemotePreview } from '../../lib' class VideosPreviewCache { @@ -54,7 +53,7 @@ class VideosPreviewCache { } private saveRemotePreviewAndReturnPath (video: VideoInstance) { - const req = fetchRemotePreview(video) + const req = fetchRemoteVideoPreview(video) return new Promise((res, rej) => { const path = join(CACHE.DIRECTORIES.PREVIEWS, video.getPreviewName()) -- cgit v1.2.3