]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/helpers/upload.ts
Translated using Weblate (German)
[github/Chocobozzz/PeerTube.git] / server / helpers / upload.ts
index c94c7ab82d316065b6294030186607dda1ae5e1a..3cb17edd0aeaafeea1eb5dc369e787326fb2d92f 100644 (file)
@@ -1,5 +1,4 @@
 import { join } from 'path'
-import { JobQueue } from '@server/lib/job-queue'
 import { RESUMABLE_UPLOAD_DIRECTORY } from '../initializers/constants'
 
 function getResumableUploadPath (filename?: string) {
@@ -8,14 +7,8 @@ function getResumableUploadPath (filename?: string) {
   return RESUMABLE_UPLOAD_DIRECTORY
 }
 
-function scheduleDeleteResumableUploadMetaFile (filepath: string) {
-  const payload = { filepath }
-  JobQueue.Instance.createJob({ type: 'delete-resumable-upload-meta-file', payload }, { delay: 900 * 1000 }) // executed in 15 min
-}
-
 // ---------------------------------------------------------------------------
 
 export {
-  getResumableUploadPath,
-  scheduleDeleteResumableUploadMetaFile
+  getResumableUploadPath
 }