From e815f566f37ccc3f115fd7f0a8c3ffcbe8766c01 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 3 Jun 2022 16:28:20 +0200 Subject: Remove unused function --- server/helpers/upload.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'server/helpers') diff --git a/server/helpers/upload.ts b/server/helpers/upload.ts index c94c7ab82..3cb17edd0 100644 --- a/server/helpers/upload.ts +++ b/server/helpers/upload.ts @@ -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 } -- cgit v1.2.3