From 6dd9de95dfa39bd5c1faed00d1dbd52cd112bae0 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 11 Apr 2019 11:33:44 +0200 Subject: Move config in its own file --- server/lib/files-cache/videos-caption-cache.ts | 3 ++- server/lib/files-cache/videos-preview-cache.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'server/lib/files-cache') diff --git a/server/lib/files-cache/videos-caption-cache.ts b/server/lib/files-cache/videos-caption-cache.ts index fe5b441af..f5ccfe0a2 100644 --- a/server/lib/files-cache/videos-caption-cache.ts +++ b/server/lib/files-cache/videos-caption-cache.ts @@ -1,8 +1,9 @@ import { join } from 'path' -import { FILES_CACHE, CONFIG } from '../../initializers' +import { FILES_CACHE } from '../../initializers' import { VideoModel } from '../../models/video/video' import { VideoCaptionModel } from '../../models/video/video-caption' import { AbstractVideoStaticFileCache } from './abstract-video-static-file-cache' +import { CONFIG } from '../../initializers/config' type GetPathParam = { videoId: string, language: string } diff --git a/server/lib/files-cache/videos-preview-cache.ts b/server/lib/files-cache/videos-preview-cache.ts index 01cd3647e..192f99aec 100644 --- a/server/lib/files-cache/videos-preview-cache.ts +++ b/server/lib/files-cache/videos-preview-cache.ts @@ -1,7 +1,8 @@ import { join } from 'path' -import { FILES_CACHE, CONFIG, STATIC_PATHS } from '../../initializers' +import { FILES_CACHE, STATIC_PATHS } from '../../initializers' import { VideoModel } from '../../models/video/video' import { AbstractVideoStaticFileCache } from './abstract-video-static-file-cache' +import { CONFIG } from '../../initializers/config' class VideosPreviewCache extends AbstractVideoStaticFileCache { -- cgit v1.2.3