]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/lib/cache/videos-caption-cache.ts
Refractor comment creation from federation
[github/Chocobozzz/PeerTube.git] / server / lib / cache / videos-caption-cache.ts
index 1336610b2e289b6508c3cdc63a00f781bd402f33..380d42b2cd8342f57ac90ce467bace4379e5b5bf 100644 (file)
@@ -42,7 +42,7 @@ class VideosCaptionCache extends AbstractVideoStaticFileCache <GetPathParam> {
     if (!video) return undefined
 
     const remoteStaticPath = videoCaption.getCaptionStaticPath()
-    const destPath = join(CACHE.DIRECTORIES.VIDEO_CAPTIONS, videoCaption.getCaptionName())
+    const destPath = join(CACHE.VIDEO_CAPTIONS.DIRECTORY, videoCaption.getCaptionName())
 
     return this.saveRemoteVideoFileAndReturnPath(video, remoteStaticPath, destPath)
   }